1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-29 09:28:06 +02: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"]){
enabled = false;
}
if (data["canvasBlocker-sendNotifications"] === tabId){
if (data.hasOwnProperty("canvasBlocker-sendNotifications") && data["canvasBlocker-sendNotifications"] === tabId){
browser.runtime.sendMessage({
sender: tabId,
"canvasBlocker-notifications": notifications