Browse Source

doc: fix dark theme on empty location hash (#21929)

Co-authored-by: Felix Mariotto <[email protected]>
Felix Mariotto 4 years ago
parent
commit
a51c59a95f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/index.html

+ 2 - 0
docs/index.html

@@ -492,11 +492,13 @@
 
 
 				iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ];
 				iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ];
 				subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' – ';
 				subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' – ';
+				iframe.style.display = 'unset';
 
 
 			} else {
 			} else {
 
 
 				iframe.src = '';
 				iframe.src = '';
 				subtitle = '';
 				subtitle = '';
+				iframe.style.display = 'none';
 
 
 			}
 			}