Merge pull request #142 from wanhose/v6.2.2

6.2.2
This commit is contained in:
wanhose 2023-01-13 12:06:01 +01:00 committed by GitHub
commit e9fb829c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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": {

View File

@ -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;