tune popup completion

This commit is contained in:
ivan grachev 2023-12-14 23:09:35 +03:00
parent 863fb0745a
commit 1b47d09d19

View File

@ -11,6 +11,7 @@ browser.tabs.getCurrent(tab => {
});
button.addEventListener('click', () => {
browser.runtime.sendMessage({subject: 'POPUP_DID_PROCEED', id: message.id, isMobile: true});
const query = encodeURIComponent(JSON.stringify(message));
browser.tabs.getCurrent((tab) => {
if (tab) {
@ -21,8 +22,6 @@ button.addEventListener('click', () => {
});
}
});
browser.runtime.sendMessage({subject: 'POPUP_DID_PROCEED', id: message.id, isMobile: true});
setTimeout(window.close, 437);
return true;
});