Commit 9995253e authored by Dave Vandyke's avatar Dave Vandyke 🐈

Refs #25 - Focus the options page correctly on Edge

parent 04373a33
Pipeline #69053308 failed with stages
in 16 minutes and 22 seconds
......@@ -149,7 +149,13 @@ function focusOptionsPage(tab)
let focusTab = () => browser.tabs.update(tab.id, {active: true});
if ("windows" in browser)
return browser.windows.update(tab.windowId, {focused: true}).then(focusTab);
{
return browser.windows.update(tab.windowId, {focused: true})
.then(focusTab)
// Edge 44 seems to throw an exception when browser.windows.update is
// called, despite it working correctly.
.catch(focusTab);
}
// Firefox for Android before version 57 does not support
// runtime.openOptionsPage, nor does it support the windows API.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment