Skip to content

Commit

Permalink
Removed unused permissions Version 4.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiiBuh committed Aug 18, 2022
1 parent ed5ad69 commit 9afd9cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/manifest_chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
"options_ui": {
"page": "options.html"
},
"declarative_net_request": {
"rule_resources": []
},
"permissions": [
"downloads",
"declarativeNetRequest",
"tabs",
"*://*.instagram.com/*",
"*://*.cdninstagram.com/*",
Expand All @@ -36,7 +32,6 @@
{
"matches": [
"*://*.instagram.com/*",
"*://*.cdninstagram.com/*"
],
"js": [
"js/extension.js"
Expand Down
3 changes: 1 addition & 2 deletions src/manifest_firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"content_scripts": [
{
"matches": [
"*://*.instagram.com/*",
"*://*.cdninstagram.com/*"
"*://*.instagram.com/*"
],
"js": [
"js/extension.js"
Expand Down
10 changes: 5 additions & 5 deletions src/ts/background/BackgroundMessageHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export class BackgroundMessageHandler {

private static async onUpdate(reason: OnInstalledDetailsType): Promise<void> {
if (reason.reason !== 'update') return;

const options = browser.runtime.getURL('options.html');
await browser.tabs.create({
url: options,
});
//
// const options = browser.runtime.getURL('options.html');
// await browser.tabs.create({
// url: options,
// });
}

private static async onMessage(message: DownloadMessage): Promise<void> {
Expand Down

0 comments on commit 9afd9cf

Please sign in to comment.