Skip to content

Commit e4db023

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

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
@@ -105,6 +105,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
105105

106106
selectFile( file );
107107
viewer.src = validRedirects.get( file );
108+
viewer.style.display = 'unset';
108109

109110
}
110111

@@ -221,6 +222,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
221222

222223
window.location.hash = file;
223224
viewer.focus();
225+
viewer.style.display = 'unset';
224226

225227
panel.classList.remove( 'open' );
226228

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)