소스 검색

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),
 	// redirect to the index page (using the current URL without extension as the new fragment).