summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 18:00:22 -0400
committerGitHub <noreply@github.com>2020-09-04 18:00:22 -0400
commitd34f1eab0230c0ec413562ca9d2f35aa44f80808 (patch)
treecc7a074249aa0fb0100933564b7a94d13cc9ee6d /ext
parentcf35b9338f76d97d2e11e2d9b6774be3a19cc903 (diff)
Make fetchModifyHeaders private (#767)
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/request-builder.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/request-builder.js b/ext/bg/js/request-builder.js
index 011d6bb8..e4380734 100644
--- a/ext/bg/js/request-builder.js
+++ b/ext/bg/js/request-builder.js
@@ -27,10 +27,12 @@ class RequestBuilder {
['cookie', null],
['origin', {name: 'Origin', value: originURL}]
];
- return this.fetchModifyHeaders(url, init, modifications);
+ return await this._fetchModifyHeaders(url, init, modifications);
}
- async fetchModifyHeaders(url, init, modifications) {
+ // Private
+
+ async _fetchModifyHeaders(url, init, modifications) {
const matchURL = this._getMatchURL(url);
let done = false;
@@ -68,8 +70,6 @@ class RequestBuilder {
}
}
- // Private
-
_onBeforeSendHeadersAddListener(callback, filter) {
const extraInfoSpec = this._onBeforeSendHeadersExtraInfoSpec;
for (let i = 0; i < 2; ++i) {