aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/background.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-03-18 00:28:26 -0400
committerAjay <[email protected]>2023-03-18 00:28:26 -0400
commit43e07fe72523e1f1e7838cd50ab4617fd253956a (patch)
treeb50927e49372238a48b738f597e84f83c9d36416 /src/background.ts
parent3ace3b96506fbcb4648e36129bfc6e735d73d811 (diff)
downloadSponsorBlock-43e07fe72523e1f1e7838cd50ab4617fd253956a.tar.gz
SponsorBlock-43e07fe72523e1f1e7838cd50ab4617fd253956a.zip
Fix Invidious support on Firefox
Diffstat (limited to 'src/background.ts')
-rw-r--r--src/background.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background.ts b/src/background.ts
index f79cfcaf..382b3453 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -2,7 +2,7 @@ import * as CompileConfig from "../config.json";
import Config from "./config";
import { Registration } from "./types";
-import registerContentScript from 'content-scripts-register-polyfill/ponyfill.js';
+import "content-scripts-register-polyfill";
import { sendRealRequestToCustomServer, setupBackgroundRequestProxy } from "@ajayyy/maze-utils/lib/background-request-proxy";
import { setupTabUpdates } from "@ajayyy/maze-utils/lib/tab-updates";
import { generateUserID } from "@ajayyy/maze-utils/lib/setup";
@@ -132,7 +132,7 @@ function registerFirefoxContentScript(options: Registration) {
const oldRegistration = contentScriptRegistrations[options.id];
if (oldRegistration) oldRegistration.unregister();
- registerContentScript({
+ chrome.contentScripts.register({
allFrames: options.allFrames,
js: options.js,
css: options.css,