Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -28,16 +28,17 @@ let elementMarkerClass = null; |
{ |
let rnd = []; |
let offset = "a".charCodeAt(0); |
for (let i = 0; i < 20; i++) |
rnd.push(offset + Math.random() * 26); |
elementMarkerClass = String.fromCharCode.apply(String, rnd); |
} |
+exports.elementMarkerClass = elementMarkerClass; |
// Load CSS asynchronously |
let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest); |
request.open("GET", "chrome://elemhidehelper/content/elementmarker.css"); |
request.overrideMimeType("text/plain"); |
request.addEventListener("load", function(event) |
{ |
if (onShutdown.done) |
@@ -70,17 +71,17 @@ request.addEventListener("load", functio |
if (!(type in knownWindowTypes) || window._ehhWrapper) |
return; |
window.document.documentElement.appendChild(overlay.cloneNode(true)); |
let style = window.document.createProcessingInstruction("xml-stylesheet", 'class="elemhidehelper-node" href="chrome://elemhidehelper/skin/overlay.css" type="text/css"'); |
window.document.insertBefore(style, window.document.firstChild); |
- window._ehhWrapper = new WindowWrapper(window, elementMarkerClass); |
+ window._ehhWrapper = new WindowWrapper(window); |
}, |
removeFromWindow: function(window) |
{ |
if (!window._ehhWrapper) |
return; |
window._ehhWrapper.shutdown(); |