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