Browse Source

make editor handle startPane parameter

Gregg Tavares 7 years ago
parent
commit
0d6583d574
1 changed files with 4 additions and 0 deletions
  1. 4 0
      threejs/resources/editor.js

+ 4 - 0
threejs/resources/editor.js

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