mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Make the toolbar warning timeout configurable
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2589
This commit is contained in:
parent
7347a2148a
commit
19db4e57f2
2 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ const hiddenSettingsDefault = {
|
|||
requestJournalProcessPeriod: 1000,
|
||||
selfieAfter: 2,
|
||||
strictBlockingBypassDuration: 120,
|
||||
toolbarWarningTimeout: 60,
|
||||
uiPopupConfig: 'unset',
|
||||
uiStyles: 'unset',
|
||||
updateAssetBypassBrowserCache: false,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue