Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/inspectorObserver.js

Issue 29321246: Issue 2737 - Fix invalid left-hand side error in Firefox 41 (Closed)
Patch Set: Created June 30, 2015, 7:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/inspectorObserver.js
===================================================================
--- a/lib/inspectorObserver.js
+++ b/lib/inspectorObserver.js
@@ -6,17 +6,17 @@
let InspectorObserver =
{
init: function()
{
let gDevTools;
try
{
- ({gDevTools}) = Cu.import("resource:///modules/devtools/gDevTools.jsm", null);
+ ({gDevTools} = Cu.import("resource:///modules/devtools/gDevTools.jsm", null));
}
catch(e)
{
// No developer tools or unsupported version - ignore.
return;
}
gDevTools.on("inspector-ready", this.inspectorReady);
@@ -49,18 +49,18 @@ let InspectorObserver =
button.setAttribute("class", "devtools-toolbarbutton");
button.setAttribute("tooltiptext", tooltiptext);
button.setAttribute("tabindex", "0");
button.addEventListener("command", function()
{
panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank",
"chrome,centerscreen,resizable,dialog=no", panel.selection.node);
}, false);
-
+
//Override button style for light DevTools theme
let style = panelWindow.document.createProcessingInstruction("xml-stylesheet", 'href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"');
panelWindow.document.insertBefore(style, panelWindow.document.firstChild);
-
+
inspectBtn.parentNode.insertBefore(button, inspectBtn);
}
};
InspectorObserver.init();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld