From 22345ab1aa82ed26af2c13ddf88d067d2994008d Mon Sep 17 00:00:00 2001 From: Lootyhoof Date: Thu, 21 Jun 2018 20:44:26 +0100 Subject: [PATCH] Remove unnecessary listener --- content/install-frame-script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/install-frame-script.js b/content/install-frame-script.js index c06d9b2..657ce00 100644 --- a/content/install-frame-script.js +++ b/content/install-frame-script.js @@ -73,9 +73,8 @@ addMessageListener("stylish:style-can-be-updated", function(message) { content.document.addEventListener("stylishUpdateChrome", updateFromSite); }); -addMessageListener("stylish:installed", function(message) { - dispatchEvent("StylishInstalled"); -}); +// tell USo that we're here +dispatchEvent("StylishInstalled"); function updateFromSite(event) { var doc = event.originalTarget;