aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-08-16 11:44:45 +0100
committerpraschke <stel@comfy.monster>2023-08-17 14:17:23 +0100
commitbc8425ec6b82ac2c8aa761ee4a94e2b6afedcad2 (patch)
tree7bfbea449a1aa46db12745f2d061c8ece9fe738b
parent4b7f91fa5f43ba6023f1c9991348b56b3e26a11b (diff)
fix: StyleOrigin enum absent in Firefox
the API accepts string literals, which is all this enum provides. This should fix two warnings in #96.
-rw-r--r--ext/js/background/script-manager.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/background/script-manager.js b/ext/js/background/script-manager.js
index a0aed2a3..694b64db 100644
--- a/ext/js/background/script-manager.js
+++ b/ext/js/background/script-manager.js
@@ -179,8 +179,8 @@ class ScriptManager {
return new Promise((resolve, reject) => {
const details = (
type === 'file' ?
- {origin: chrome.scripting.StyleOrigin.AUTHOR, files: [content]} :
- {origin: chrome.scripting.StyleOrigin.USER, css: content}
+ {origin: 'AUTHOR', files: [content]} :
+ {origin: 'USER', css: content}
);
details.target = {
tabId,