aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-10-21 15:43:37 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-10-30 10:33:43 +0100
commit55f294f450f8bde15176bd251a37c6a2a0b90123 (patch)
tree49c80f98c5701f7308043d520a7c7a34c15c3ff8 /data
parent5633f921c92425ede58ee06f3ebbd060b00fea1d (diff)
downloadbugzilla-triage-55f294f450f8bde15176bd251a37c6a2a0b90123.tar.gz
Various cleanups.
- Also fix generation of XPI file. - Fix against missing RE keys
Diffstat (limited to 'data')
-rw-r--r--data/lib/bzpage.js7
1 files changed, 6 insertions, 1 deletions
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