From bc8425ec6b82ac2c8aa761ee4a94e2b6afedcad2 Mon Sep 17 00:00:00 2001 From: praschke Date: Wed, 16 Aug 2023 11:44:45 +0100 Subject: fix: StyleOrigin enum absent in Firefox the API accepts string literals, which is all this enum provides. This should fix two warnings in #96. --- ext/js/background/script-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js') 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, -- cgit v1.2.3