1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 18:42:00 +01:00

Removed warning about unknown property.

This commit is contained in:
kkapsner 2017-07-18 16:16:38 +02:00
parent 6c47397d46
commit bec157391d

View File

@ -141,7 +141,7 @@
if (data["canvasBlocker-unload"]){ if (data["canvasBlocker-unload"]){
enabled = false; enabled = false;
} }
if (data["canvasBlocker-sendNotifications"] === tabId){ if (data.hasOwnProperty("canvasBlocker-sendNotifications") && data["canvasBlocker-sendNotifications"] === tabId){
browser.runtime.sendMessage({ browser.runtime.sendMessage({
sender: tabId, sender: tabId,
"canvasBlocker-notifications": notifications "canvasBlocker-notifications": notifications