Skip to content

Commit

Permalink
Fix invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Nov 13, 2023
1 parent 373285d commit f5a7681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backgroundscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (typeof browser !== 'undefined') {
}
// DEV: For a Mozilla MV3 extension, we have to use 'action' instead of 'browserAction'
var genericAction = genericBrowser.browserAction || genericBrowser.action;
genericBrowser[genericAction].onClicked.addListener(function () {
genericAction.onClicked.addListener(function () {
var newURL = chrome.runtime.getURL('www/index.html');
chrome.tabs.create({ url: newURL });
});

0 comments on commit f5a7681

Please sign in to comment.