From d7fdd1b59dd8d98c5c9b5b4879f2795facc77788 Mon Sep 17 00:00:00 2001 From: Oleksii Nazarenko Date: Sat, 21 Sep 2024 10:25:47 +0100 Subject: [PATCH] remove tabs permission --- manifest.json | 2 +- package.json | 2 +- src/features/router/redirect.ts | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) 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 }