From 6a31b48a96f8741a4266e573ae45a81efb6c13e3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 5 May 2016 02:25:44 +0300 Subject: [PATCH] now devtools will not launch by default, but will launch if something goes wrong during loading... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/meta.js | 3 +++ ui (gen4)/features/ui.js | 20 ++++++++++++++++++++ ui (gen4)/index.html | 4 +++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/meta.js b/ui (gen4)/features/meta.js index 7b28f5c9..352750fa 100755 --- a/ui (gen4)/features/meta.js +++ b/ui (gen4)/features/meta.js @@ -118,6 +118,9 @@ core.ImageGridFeatures.Feature('viewer-testing', [ // XXX not yet fully tested... 'system-journal', + + + 'fail-safe-devtools', ]) /* diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 70e4a5ba..98b4bdc5 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -1742,6 +1742,26 @@ module.IndirectControl = core.ImageGridFeatures.Feature({ +/*********************************************************************/ + +var FailsafeDevTools = +module.FailsafeDevTools = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + tag: 'fail-safe-devtools', + + priority: 'low', + + handlers: [ + ['start', + function(){ + window.__devtools_failsafe && clearTimeout(window.__devtools_failsafe) }], + ], +}) + + + /*********************************************************************/ // XXX experimental... diff --git a/ui (gen4)/index.html b/ui (gen4)/index.html index 8b5b3528..2d7192cc 100755 --- a/ui (gen4)/index.html +++ b/ui (gen4)/index.html @@ -233,7 +233,9 @@ body {