commit
e9fb829c0a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Cookie Dialog Monster",
|
"name": "Cookie Dialog Monster",
|
||||||
"version": "6.2.1",
|
"version": "6.2.2",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_appDesc__",
|
"description": "__MSG_appDesc__",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
@ -216,12 +216,14 @@ const submitButtonClickHandler = (event) => {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener((message) => {
|
chrome.runtime.onMessage.addListener((message) => {
|
||||||
|
const isPage = window === window.top;
|
||||||
|
|
||||||
switch (message.type) {
|
switch (message.type) {
|
||||||
case 'HIDE_REPORT_DIALOG':
|
case 'HIDE_REPORT_DIALOG':
|
||||||
hideReportDialog();
|
if (isPage) hideReportDialog();
|
||||||
break;
|
break;
|
||||||
case 'SHOW_REPORT_DIALOG':
|
case 'SHOW_REPORT_DIALOG':
|
||||||
showReportDialog();
|
if (isPage) showReportDialog();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user