Преглед изворни кода

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).