From 34ab982b247a64d4424a01bc6208dbad3e47ad05 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 13 Jun 2016 10:58:01 -0400 Subject: [PATCH] Remove body display hidden white flash workaround (#478) In older versions of Electron, the application would display a quick flash of white before running caused by the WebView loading up. This workaround doesn't seem necessary anymore. Signed-off-by: Juan Cruz Viotti --- lib/gui/app.js | 10 ---------- lib/gui/index.html | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/gui/app.js b/lib/gui/app.js index 8a89d0fb..6df6397d 100644 --- a/lib/gui/app.js +++ b/lib/gui/app.js @@ -179,16 +179,6 @@ app.controller('AppController', function( } }); - // We manually add `style="display: none;"` to - // and unset it here instead of using ngCloak since - // the latter takes effect as soon as the Angular - // library was loaded, but doesn't always mean that - // the application is ready, causing the application - // to be shown in an unitialized state for some milliseconds. - // Here in the controller, we are sure things are - // completely up and running. - document.querySelector('body').style.display = 'initial'; - this.selectImage = function(image) { if (!SupportedFormatsModel.isSupportedImage(image.path)) { AnalyticsService.logEvent('Invalid image', image); diff --git a/lib/gui/index.html b/lib/gui/index.html index 473afb29..cdb8df15 100644 --- a/lib/gui/index.html +++ b/lib/gui/index.html @@ -17,7 +17,7 @@ - +