| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 let InspectorObserver = | 7 let InspectorObserver = |
| 8 { | 8 { |
| 9 init: function() | 9 init: function() |
| 10 { | 10 { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 target.client.request({ | 58 target.client.request({ |
| 59 to: target.form.elemhidehelper, | 59 to: target.form.elemhidehelper, |
| 60 type: "nodeinfo", | 60 type: "nodeinfo", |
| 61 nodeActor: node.actorID | 61 nodeActor: node.actorID |
| 62 }, function(response) | 62 }, function(response) |
| 63 { | 63 { |
| 64 if (!response.nodeData) | 64 if (!response.nodeData) |
| 65 return; | 65 return; |
| 66 | 66 |
| 67 panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", | 67 panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", |
| 68 "_blank", "chrome,centerscreen,resizable,dialog=no", | 68 "_blank", "chrome,centerscreen,resizable,dialog=no", response); |
| 69 response.nodeData, response.host); | |
| 70 }); | 69 }); |
| 71 } | 70 } |
| 72 }, false); | 71 }, false); |
| 73 | 72 |
| 74 //Override button style for light DevTools theme | 73 //Override button style for light DevTools theme |
| 75 let style = panelWindow.document.createProcessingInstruction("xml-stylesheet
", 'href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"'); | 74 let style = panelWindow.document.createProcessingInstruction("xml-stylesheet
", 'href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"'); |
| 76 panelWindow.document.insertBefore(style, panelWindow.document.firstChild); | 75 panelWindow.document.insertBefore(style, panelWindow.document.firstChild); |
| 77 | 76 |
| 78 inspectBtn.parentNode.insertBefore(button, inspectBtn); | 77 inspectBtn.parentNode.insertBefore(button, inspectBtn); |
| 79 } | 78 } |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 InspectorObserver.init(); | 81 InspectorObserver.init(); |
| OLD | NEW |