Преглед на файлове

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