Skip to content

Commit c326e6c

Browse files
felixmariottoFelix Mariotto
authored andcommitted
examples: fix dark theme on empty location hash (#21932)
Co-authored-by: Felix Mariotto <[email protected]>
1 parent a51c59a commit c326e6c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
118118

119119
selectFile( file );
120120
viewer.src = validRedirects.get( file );
121+
viewer.style.display = 'unset';
121122

122123
}
123124

@@ -234,6 +235,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
234235

235236
window.location.hash = file;
236237
viewer.focus();
238+
viewer.style.display = 'unset';
237239

238240
panel.classList.remove( 'open' );
239241

files/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ iframe {
383383
width: 100%;
384384
height: 100%;
385385
overflow: auto;
386+
display: none;
386387
}
387388

388389
#viewer {

0 commit comments

Comments
 (0)