From d34f1eab0230c0ec413562ca9d2f35aa44f80808 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 4 Sep 2020 18:00:22 -0400 Subject: Make fetchModifyHeaders private (#767) --- ext/bg/js/request-builder.js | 8 ++++---- 1 file 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) { -- cgit v1.2.3