File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
components/supervisor/frontend/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ const ideService = IDEFrontendService.create();
64
64
const loadingIDE = new Promise ( ( resolve ) => window . addEventListener ( "DOMContentLoaded" , resolve , { once : true } ) ) ;
65
65
const toStop = new DisposableCollection ( ) ;
66
66
67
- document . body . style . visibility = "hidden" ;
68
67
LoadingFrame . load ( ) . then ( async ( loading ) => {
69
68
const frontendDashboardServiceClient = loading . frontendDashboardServiceClient ;
70
69
await frontendDashboardServiceClient . initialize ( ) ;
@@ -162,8 +161,8 @@ LoadingFrame.load().then(async (loading) => {
162
161
if ( current === newCurrent ) {
163
162
return ;
164
163
}
165
- current . style . visibility = "hidden" ;
166
- newCurrent . style . visibility = "visible" ;
164
+ current . hidden = true ;
165
+ newCurrent . hidden = false ;
167
166
if ( current === document . body ) {
168
167
while ( document . body . firstChild && document . body . firstChild !== newCurrent ) {
169
168
document . body . removeChild ( document . body . firstChild ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export function load(): Promise<{
14
14
return new Promise ( ( resolve ) => {
15
15
const frame = document . createElement ( "iframe" ) ;
16
16
frame . src = startUrl . toString ( ) ;
17
- frame . style . visibility = "visible" ;
17
+ frame . hidden = false ;
18
18
frame . className = "gitpod-frame loading" ;
19
19
document . body . appendChild ( frame ) ;
20
20
You can’t perform that action at this time.
0 commit comments