8.0.4 #226
@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Cookie Dialog Monster",
|
||||
"version": "8.0.3",
|
||||
"version": "8.0.4",
|
||||
"default_locale": "en",
|
||||
"description": "__MSG_appDesc__",
|
||||
"icons": {
|
||||
@ -11,6 +11,7 @@
|
||||
},
|
||||
"action": {
|
||||
"default_icon": "assets/icons/off.png",
|
||||
"default_popup": "popup.html",
|
||||
"default_title": "Cookie Dialog Monster"
|
||||
},
|
||||
"options_page": "options.html",
|
||||
|
@ -302,16 +302,6 @@ browser.runtime.onMessage.addListener((message, sender, callback) => {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case 'ENABLE_POPUP':
|
||||
if (isPage && tabId !== undefined) {
|
||||
browser.action.setPopup({ popup: '/popup.html', tabId }, suppressLastError);
|
||||
}
|
||||
break;
|
||||
case 'ENABLE_REPORT':
|
||||
if (isPage && tabId !== undefined) {
|
||||
browser.contextMenus.update(reportMenuItemId, { enabled: true });
|
||||
}
|
||||
break;
|
||||
case 'GET_DATA':
|
||||
getData().then(callback);
|
||||
return true;
|
||||
@ -381,7 +371,6 @@ browser.runtime.onInstalled.addListener((details) => {
|
||||
{
|
||||
contexts: ['all'],
|
||||
documentUrlPatterns,
|
||||
enabled: false,
|
||||
id: reportMenuItemId,
|
||||
parentId: extensionMenuItemId,
|
||||
title: browser.i18n.getMessage('contextMenu_reportOption'),
|
||||
|
@ -469,8 +469,6 @@ async function setUp(params = {}) {
|
||||
}
|
||||
|
||||
state = await dispatch({ hostname, type: 'GET_STATE' });
|
||||
dispatch({ type: 'ENABLE_POPUP' });
|
||||
dispatch({ type: 'ENABLE_REPORT' });
|
||||
|
||||
if (state.on) {
|
||||
browser.runtime.onMessage.addListener(handleRuntimeMessage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user