summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/main.js b/content/main.js
index 3204a8a..b044c82 100644
--- a/content/main.js
+++ b/content/main.js
@@ -18,6 +18,7 @@
* IMPORT is_privileged_url
* IMPORT sanitize_attributes
* IMPORT mozilla_suppress_scripts
+ * IMPORT browser
* IMPORT is_chrome
* IMPORT is_mozilla
* IMPORT start_activity_info_server
@@ -134,9 +135,9 @@ if (!is_privileged_url(document.URL)) {
port.onMessage.removeListener(nonce_capturer);
handle_page_actions(msg[1], port);
};
-
+
port.onMessage.addListener(nonce_capturer);
-
+
} else if (is_whitelisted()) {
/* do not block scripts at all; as a result, there is no need for a green-lighted nonce */
handle_page_actions(null, port);