Page MenuHomePhabricator

D11141.id26753.diff
No OneTemporary

D11141.id26753.diff

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

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)

Event Timeline