Skip to content

Commit

Permalink
[WebExtension] Fix warning "Only packaged apps are allowed to use 'la…
Browse files Browse the repository at this point in the history
…uncher' context"
  • Loading branch information
setvisible committed Jan 6, 2024
1 parent c2ae2fe commit d513bd7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web-extension/extension/src/chromium/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ chrome.contextMenus.removeAll(
addAction("save-image", chrome.i18n.getMessage("contextMenuSaveImage"), "image");
addAction("save-video", chrome.i18n.getMessage("contextMenuSaveVideo"), "video");
addAction("save-audio", chrome.i18n.getMessage("contextMenuSaveAudio"), "audio");
addAction("save-launcher", chrome.i18n.getMessage("contextMenuSaveLauncher"), "launcher");
}
);

Expand All @@ -41,7 +40,6 @@ chrome.contextMenus.onClicked.addListener(
} else if (info.menuItemId === "save-frame" ) { save_page(info, tab);
} else if (info.menuItemId === "save-image" ) { save_image(info, tab);
} else if (info.menuItemId === "save-audio" ) { save_image(info, tab);
} else if (info.menuItemId === "save-launcher" ) { save_page(info, tab);
} else if (info.menuItemId === "save-link" ) { save_link(info, tab);
} else if (info.menuItemId === "save-selection" ) { save_page(info, tab);
} else if (info.menuItemId === "save-video" ) { save_image(info, tab);
Expand Down

0 comments on commit d513bd7

Please sign in to comment.