Force-close popup panel when reporting a filter issue

Necessary on Firefox.
This commit is contained in:
Raymond Hill 2021-11-13 12:18:26 -05:00
parent ad76ee2158
commit 52063c8633
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 9 deletions

View File

@ -27,12 +27,6 @@ import punycode from '../lib/punycode.js';
/******************************************************************************/
{
// >>>>> start of local scope
/******************************************************************************/
let popupFontSize = 'unset';
vAPI.localStorage.getItemAsync('popupFontSize').then(value => {
if ( typeof value !== 'string' || value === 'unset' ) { return; }
@ -850,6 +844,8 @@ const gotoReport = function() {
what: 'launchReporter',
tabId: popupData.tabId,
});
vAPI.closePopup();
};
/******************************************************************************/
@ -1413,6 +1409,3 @@ document.querySelector('#firewall > [data-type="3p-frame"] .filter')
});
/******************************************************************************/
// <<<<< end of local scope
}