소스 검색

Merge pull request #8042 from BabylonJS/RaananW-pg-patch-1

Fixing local playground issue
David Catuhe 5 년 전
부모
커밋
a9e6e1fde5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Playground/js/main.js

+ 2 - 2
Playground/js/main.js

@@ -566,7 +566,7 @@ class Main {
                         exampleList.appendChild(noResultContainer);
                     }
 
-                    if (!location.hash && restoreVersionResult == false && (location.pathname === '/' || !location.pathname)) {
+                    if (!location.hash && restoreVersionResult == false && location.pathname.indexOf('pg/') === -1)
                         // Query string
                         var queryString = window.location.search;
 
@@ -1155,4 +1155,4 @@ class Main {
         }
         return query;
     }
-}
+}