Skip to content

Commit

Permalink
update link + fix zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
alganzory committed Feb 2, 2024
1 parent 3437410 commit 1f63930
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "HaramBlur",
"description": "Protect your privacy and uphold Islamic values by auto detecting & blurring images and videos of unwanted or impermissible content.",
"version": "0.1.9",
"version": "0.2.1",
"permissions": ["storage", "offscreen","contextMenus"],
"author": "md.alganzory@gmail.com",
"action": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"build": "vite build",
"dev": "vite build --watch",
"release": "bestzip extension.zip dist manifest.json src/assets src/background.js src/constants.js src/translations.js src/popup.html src/popup.js src/offscreen.html src/offscreen.js src/translations.js src/modules/* tfjs/*"
"release": "bestzip extension.zip dist manifest.json src/assets src/background.js src/constants.js src/translations.js src/popup.html src/popup.js src/offscreen.html src/offscreen.js src/modules/* tfjs/*"
},
"devDependencies": {
"bestzip": "^2.2.1",
Expand Down
13 changes: 8 additions & 5 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ chrome.contextMenus.onClicked.addListener((info, tab) => {

// on install, onboarding
chrome.runtime.onInstalled.addListener(function (details) {
if (details?.reason !== "install") {
return;
if (details?.reason === "install") {
chrome.tabs.create({
url: "https://onboard.haramblur.com/",
});
} else if (details?.reason === "update") {
chrome.tabs.create({
url: "https://update.haramblur.com/",
});
}
chrome.tabs.create({
url: "https://onboard.haramblur.com/",
});
});

// on uninstall
Expand Down

0 comments on commit 1f63930

Please sign in to comment.