From 55f294f450f8bde15176bd251a37c6a2a0b90123 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 21 Oct 2011 15:43:37 +0200 Subject: Various cleanups. - Also fix generation of XPI file. - Fix against missing RE keys --- data/lib/bzpage.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'data/lib/bzpage.js') diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index f3f5e27..4bba873 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -358,13 +358,18 @@ function completeInit() { function startup() { // First, preflight check ... if we are not logged in, there // is nothing we can do. + console.log("startup: Starting!"); var logoutLink = Array.some(document.links, function (x) { return x.search === "?logout=1" ; }); - if (!logoutLink) { + if (document.getElementById("brElementPlace_location")) { + console.error("Hit multiple firing protection!") return null; // This should just finish whole content script without // doing any harm to anybody. } + else { + console.myDebug("Didn't hit multiple firing protection!"); + } // Prepare for query buttons // element ID brElementPlace_location is later used in JSON files -- cgit