浏览代码

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';
 
 			}