Permalink
Browse files

fix check

  • Loading branch information...
1 parent 7a7bd40 commit f0e7ee4c04e620ec98484c2df664d007625d5eb9 @luruke luruke committed May 18, 2015
Showing with 5 additions and 1 deletion.
  1. BIN Mata.crx
  2. +5 −1 content.js
View
BIN Mata.crx
Binary file not shown.
View
@@ -27,11 +27,15 @@ function toggle_mata() {
}
}
+function updateStatus() {
+ isActive = icon.value === 'meta-inactive-38.png' ? false : true;
+}
+
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.message == "clicked_browser_action") {
toggle_mata();
chrome.runtime.sendMessage({ "message": "clicked_browser_action", "current_icon_path": icon.value });
}
});
-body.addEventListener("DOMSubtreeModified", toggle_mata);
+body.addEventListener("DOMSubtreeModified", updateStatus);

0 comments on commit f0e7ee4

Please sign in to comment.