diff --git a/manifest.json b/manifest.json index fb02258..698b3de 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,7 @@ "icons": { "128": "icon-128.png" }, - "permissions": ["storage", "activeTab", "tabs"], + "permissions": ["storage", "activeTab"], "content_scripts": [ { "matches": ["https://studres.cs.st-andrews.ac.uk/*"], diff --git a/package.json b/package.json index a5fa8f2..129f9be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-studres", - "version": "2.9.2", + "version": "2.9.2.1", "description": "Improves appearance of the St Andrews student resources platform, featuring a completely redesigned UI and UX.", "license": "MIT", "repository": { diff --git a/src/features/router/redirect.ts b/src/features/router/redirect.ts index b54cbae..3f2c4f1 100644 --- a/src/features/router/redirect.ts +++ b/src/features/router/redirect.ts @@ -9,11 +9,7 @@ export function redirect( isBlank?: boolean ) { if (isBlank) { - if (typeof chrome?.tabs?.create === "function") { - chrome.tabs.create({ url: href }) - } else { - window.open(href, "_blank") - } + window.open(href, "_blank") return }