Skip to content

Commit

Permalink
remove tabs permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Sep 21, 2024
1 parent 1f49d96 commit d7fdd1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 1 addition & 5 deletions src/features/router/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d7fdd1b

Please sign in to comment.