mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-22 21:49:51 +03:00
tune popup completion
This commit is contained in:
parent
863fb0745a
commit
1b47d09d19
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user