diff --git a/src/js/background.js b/src/js/background.js index 4d43a1706..7615d5ef3 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -82,6 +82,7 @@ const hiddenSettingsDefault = { requestJournalProcessPeriod: 1000, selfieAfter: 2, strictBlockingBypassDuration: 120, + toolbarWarningTimeout: 60, uiPopupConfig: 'unset', uiStyles: 'unset', updateAssetBypassBrowserCache: false, diff --git a/src/js/traffic.js b/src/js/traffic.js index 6b7c17a88..fc8616aa6 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -1133,7 +1133,7 @@ const webRequest = { urls: [ 'http://*/*', 'https://*/*' ] } ); - vAPI.defer.once({ min: 1 }).then(( ) => { + vAPI.defer.once({ sec: µb.hiddenSettings.toolbarWarningTimeout }).then(( ) => { if ( vAPI.net.hasUnprocessedRequest() === false ) { return; } vAPI.net.removeUnprocessedRequest(); return vAPI.tabs.getCurrent();