Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15433746
D11141.id26753.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
999 B
Referenced Files
None
Subscribers
None
D11141.id26753.diff
View Options
diff --git a/webroot/rsrc/js/core/behavior-dark-console.js b/webroot/rsrc/js/core/behavior-dark-console.js
--- a/webroot/rsrc/js/core/behavior-dark-console.js
+++ b/webroot/rsrc/js/core/behavior-dark-console.js
@@ -9,14 +9,6 @@
*/
JX.behavior('dark-console', function(config, statics) {
- var root = statics.root || setup_console();
-
- config.key = config.key || root.getAttribute('data-console-key');
-
- if (!('color' in config)) {
- config.color = root.getAttribute('data-console-color');
- }
-
// Do first-time setup.
function setup_console() {
statics.root = JX.$('darkconsole');
@@ -57,6 +49,14 @@
return statics.root;
}
+ var root = statics.root || setup_console();
+
+ config.key = config.key || root.getAttribute('data-console-key');
+
+ if (!('color' in config)) {
+ config.color = root.getAttribute('data-console-color');
+ }
+
// Add a new request to the console (initial page load, or new Ajax response).
function add_request(config) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 26, 12:28 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390839
Default Alt Text
D11141.id26753.diff (999 B)
Attached To
Mode
D11141: Define function before use
Attached
Detach File
Event Timeline
Log In to Comment