Skip to content

Commit

Permalink
Migrate manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
metoule committed Jun 1, 2024
1 parent f09b7a3 commit 18f5d74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"action": {
"default_icon": "imgs/icons/deezer_19x19.png",
"default_title": "__MSG_defaultTitle__"
"default_title": "__MSG_defaultTitle__",
"default_popup": "popup.html"
},
"background": {
"service_worker": "scripts/service_worker.js",
Expand Down
9 changes: 4 additions & 5 deletions scripts/service_worker.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Version from './Version.js';

const version = new Version("2.0.15");
const version = new Version('2.0.15');
console.log('service worker loaded', version);

// if no popup is set, it means that we should open a new tab with default player
chrome.action.onClicked.addListener(function()
{
chrome.tabs.create({ url: '/options.html' });
});
chrome.action.onClicked.addListener(function () {
chrome.tabs.create({ url: '/options.html' });
});

0 comments on commit 18f5d74

Please sign in to comment.