You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
// COMPAT: popouts can’t be window.close() on Firefox for Android, Moving focus
// back to the active tab (the popout is never active) will close the popout.
function closePopOut()
{
browser.runtime.getPlatformInfo().then(
function(platformInfo)
{
if (platformInfo.os == 'android')
browser.tabs.update({active: true});
else
window.close();
},
window.close
);
}
browser.tabs.update({active: true}); does not appear to be valid? (at least TypeScript complains about needing two arguments, tabId and updateProperties). Seems to be happy with chrome.tabs.update({active: true}); for Chrome.
https://www.ctrl.blog/entry/firefox-browseraction-close-popout-android
The text was updated successfully, but these errors were encountered: