Sfoglia il codice sorgente

make editor handle startPane parameter

Gregg Tavares 7 anni fa
parent
commit
0d6583d574
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      threejs/resources/editor.js

+ 4 - 0
threejs/resources/editor.js

@@ -197,6 +197,10 @@ function main() {
     }
     }
     parseHTML(query.url, html);
     parseHTML(query.url, html);
     setupEditor(query.url);
     setupEditor(query.url);
+    if (query.startPane) {
+      const button = document.querySelector(".button-" + query.startPane);
+      toggleSourcePane(button);
+    }
   });
   });
 }
 }
 
 

粤ICP备19079148号