File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ const { getJQuerifyCode } = require("./jquerify-code");
23
23
24
24
/**
25
25
* @overlay This object represents an overlay for the existing
26
- * Console panel and is responsible for Console customization.
26
+ * Console panel. It's responsible for Console customization.
27
+ * The overlay follows the life cycle of the pane. It's created when
28
+ * the panel is created (which happens when the panel is selected
29
+ * by the user for the first time) and it's destroyed when the
30
+ * Toolbox is destroyed.
27
31
*
28
32
* FireQuery is appending a new 'jQuerify' toolbar button
29
33
*/
@@ -74,6 +78,8 @@ const ConsoleOverlay = Class(
74
78
command : this . onJQuerify . bind ( this )
75
79
} ) ;
76
80
81
+ // Load custom style-sheet into the panel window (content window of
82
+ // the panel's frame).
77
83
let win = this . getPanelWindow ( ) ;
78
84
loadSheet ( win , "chrome://firequery/skin/firequery.css" , "author" ) ;
79
85
} ,
@@ -94,6 +100,7 @@ const ConsoleOverlay = Class(
94
100
return ;
95
101
}
96
102
103
+ // Evaluate jQuery script in the current page.
97
104
let script = getJQuerifyCode ( ) ;
98
105
webConsoleClient . evaluateJSAsync ( script , response => {
99
106
if ( response . error ) {
You can’t perform that action at this time.
0 commit comments