Index: lib/cssInjection.js |
=================================================================== |
--- a/lib/cssInjection.js |
+++ b/lib/cssInjection.js |
@@ -71,17 +71,18 @@ |
try |
{ |
browser.tabs.insertCSS(tabId, { |
code: styleSheet, |
cssOrigin: "user", |
frameId, |
matchAboutBlank: true, |
runAt: "document_start" |
- }); |
+ }) |
+ .catch(() => {}); |
Sebastian Noack
2018/03/12 22:41:25
To clarify, so the catch-block below is essentiall
Manish Jethani
2018/03/13 06:09:47
On both Firefox and Chrome 65 the error for "cssOr
Sebastian Noack
2018/03/13 15:38:45
I see. Perhaps add some comments here, clarifying
Manish Jethani
2018/03/13 17:14:20
Done.
|
} |
catch (error) |
{ |
if (/\bcssOrigin\b/.test(error.message)) |
userStyleSheetsSupported = false; |
return false; |
} |