mirror of https://github.com/gorhill/uBlock.git
Link the reload button to clearing the unprocessed-requests status
This commit is contained in:
parent
be736b20bd
commit
464119af61
|
@ -697,6 +697,7 @@ dom.on('.dismiss', 'click', ( ) => {
|
|||
what: 'dismissUnprocessedRequest',
|
||||
tabId: popupData.tabId,
|
||||
}).then(( ) => {
|
||||
popupData.hasUnprocessedRequest = false;
|
||||
dom.cl.remove(dom.root, 'warn');
|
||||
});
|
||||
});
|
||||
|
@ -1151,6 +1152,18 @@ const setFirewallRuleHandler = function(ev) {
|
|||
/******************************************************************************/
|
||||
|
||||
const reloadTab = function(bypassCache = false) {
|
||||
// Premptively clear the unprocessed-requests status since we know for sure
|
||||
// the page is being reloaded in this code path.
|
||||
if ( popupData.hasUnprocessedRequest === true ) {
|
||||
messaging.send('popupPanel', {
|
||||
what: 'dismissUnprocessedRequest',
|
||||
tabId: popupData.tabId,
|
||||
}).then(( ) => {
|
||||
popupData.hasUnprocessedRequest = false;
|
||||
dom.cl.remove(dom.root, 'warn');
|
||||
});
|
||||
}
|
||||
|
||||
messaging.send('popupPanel', {
|
||||
what: 'reloadTab',
|
||||
tabId: popupData.tabId,
|
||||
|
|
Loading…
Reference in New Issue