Skip to content

Commit

Permalink
Fixed misfire of install event
Browse files Browse the repository at this point in the history
  • Loading branch information
arjohnsonn committed Oct 15, 2024
1 parent 9ec230e commit 656853c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ chrome.runtime.onMessage.addListener(async (request, sender, sendResponse) => {
let internalUrl = chrome.runtime.getURL("html/landing.html");
chrome.runtime.onInstalled.addListener(function (object) {
console.log(object.reason);
send("testinstall");
if (object.reason === chrome.runtime.OnInstalledReason.INSTALL) {
send("install");
chrome.tabs.create({ url: internalUrl }, function (tab) {
console.log("Installation detected");
});
Expand Down

0 comments on commit 656853c

Please sign in to comment.