Index: popup.js |
diff --git a/popup.js b/popup.js |
index 3b5dc9b547f19d6105372b78adcebea38ce0352b..aef03d7223ff6d72540f9441d91f92a9edcd9965 100644 |
--- a/popup.js |
+++ b/popup.js |
@@ -48,7 +48,7 @@ function onLoad() |
if (checkWhitelisted(page)) |
document.body.classList.add("disabled"); |
- page.sendMessage({type: "get-clickhide-state"}, function(response) |
+ page.sendMessage({type: "blockelement-get-state"}, function(response) |
{ |
if (response && response.active) |
document.body.classList.add("clickhide-active"); |
@@ -120,7 +120,7 @@ function toggleEnabled() |
function activateClickHide() |
{ |
document.body.classList.add("clickhide-active"); |
- page.sendMessage({type: "clickhide-activate"}); |
+ page.sendMessage({type: "blockelement-start-picking-element"}); |
// Close the popup after a few seconds, so user doesn't have to |
activateClickHide.timeout = window.setTimeout(ext.closePopup, 5000); |
@@ -134,7 +134,7 @@ function cancelClickHide() |
activateClickHide.timeout = null; |
} |
document.body.classList.remove("clickhide-active"); |
- page.sendMessage({type: "clickhide-deactivate"}); |
+ page.sendMessage({type: "blockelement-finished"}); |
} |
function toggleCollapse(event) |