mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Explain why we toggle body's display manually instead of using ngCloak
This commit is contained in:
parent
ffbccc5aec
commit
817a6f591b
@ -78,7 +78,14 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState
|
||||
|
||||
this.restart();
|
||||
|
||||
// We're ready to unhide the application now
|
||||
// We manually add `style="display: none;"` to <body>
|
||||
// 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() {
|
||||
|
@ -77,7 +77,14 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState
|
||||
|
||||
this.restart();
|
||||
|
||||
// We're ready to unhide the application now
|
||||
// We manually add `style="display: none;"` to <body>
|
||||
// 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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user