소스 검색

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

Co-authored-by: Felix Mariotto <[email protected]>
Felix Mariotto 4 년 전
부모
커밋
43d9a8e2d8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      docs/index.html

+ 2 - 0
docs/index.html

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