From 1b47d09d19d9c15e21e89025c695743b3335b515 Mon Sep 17 00:00:00 2001 From: ivan grachev Date: Thu, 14 Dec 2023 23:09:35 +0300 Subject: [PATCH] tune popup completion --- Safari iOS/Resources/popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Safari iOS/Resources/popup.js b/Safari iOS/Resources/popup.js index a74fedaa..9b9dedd6 100644 --- a/Safari iOS/Resources/popup.js +++ b/Safari iOS/Resources/popup.js @@ -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; });