Skip to content

Commit

Permalink
Reduce permissions requested and make manifest permissions similar be…
Browse files Browse the repository at this point in the history
…tween Firefox and Chrome (#18)

Fixes #17
  • Loading branch information
BrunoBernardino authored Jul 27, 2023
1 parent 1b6e342 commit 27931bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Kagi Search for Chrome",
"version": "0.3.2",
"version": "0.3.3",
"description": "A simple extension for setting Kagi as a default search engine, and automatically logging in to Kagi in incognito browsing windows",
"background": {
"service_worker": "src/background.js",
Expand All @@ -22,7 +22,6 @@
"activeTab",
"declarativeNetRequestWithHostAccess",
"webRequest",
"webRequestBlocking",
"cookies",
"storage"
],
Expand Down
3 changes: 1 addition & 2 deletions firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Kagi Search for Firefox",
"version": "0.3.2",
"version": "0.3.3",
"description": "A simple helper extension for setting Kagi as a default search engine, and automatically logging in to Kagi in incognito browsing windows.",
"background": {
"page": "src/background_page.html"
Expand All @@ -21,7 +21,6 @@
"activeTab",
"declarativeNetRequestWithHostAccess",
"webRequest",
"webRequestBlocking",
"cookies",
"storage"
],
Expand Down
2 changes: 1 addition & 1 deletion shared/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function checkForSession() {
browser.webRequest.onBeforeRequest.addListener(
checkForSession,
{ urls: ['https://kagi.com/*'] },
IS_CHROME ? [] : ['blocking'],
[],
);

browser.runtime.onMessage.addListener(async (data) => {
Expand Down

0 comments on commit 27931bf

Please sign in to comment.