Fix: better comment
This commit is contained in:
parent
1127dbe71e
commit
f47a4351bf
|
@ -120,7 +120,8 @@ bgReady.all.then(() => {
|
||||||
try {
|
try {
|
||||||
await browser.tabs.update(tabId, {url: newUrl});
|
await browser.tabs.update(tabId, {url: newUrl});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// FIXME: https://github.com/openstyles/stylus/issues/1367
|
// FIXME: remove this when kiwi supports tabs.update
|
||||||
|
// https://github.com/openstyles/stylus/issues/1367
|
||||||
if (/Tabs cannot be edited right now/i.test(err.message)) {
|
if (/Tabs cannot be edited right now/i.test(err.message)) {
|
||||||
return browser.tabs.create({url: newUrl});
|
return browser.tabs.create({url: newUrl});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user