Fix: better comment

This commit is contained in:
eight04 2021-12-16 02:29:11 +08:00
parent 1127dbe71e
commit f47a4351bf

View File

@ -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});
} }