浏览代码

Docs: Re-enable browsing local

Jost Schmithals 8 年之前
父节点
当前提交
47d90b516e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/page.js

+ 1 - 1
docs/page.js

@@ -1,4 +1,4 @@
-if ( !window.frameElement ) {
+if ( !window.frameElement && window.location.protocol !== 'file:' ) {
 
 
 	// If the page is not yet displayed as an iframe of the index page (navigation panel/working links),
 	// If the page is not yet displayed as an iframe of the index page (navigation panel/working links),
 	// redirect to the index page (using the current URL without extension as the new fragment).
 	// redirect to the index page (using the current URL without extension as the new fragment).