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