Browse Source

Editor: don't expose THREE to window twice

Jesper van den Ende 5 years ago
parent
commit
52a59e6f43
1 changed files with 1 additions and 3 deletions
  1. 1 3
      editor/index.html

+ 1 - 3
editor/index.html

@@ -67,6 +67,7 @@
 			//
 
 			var editor = new Editor();
+			window.editor = editor;
 
 			var viewport = new Viewport( editor );
 			document.body.appendChild( viewport.dom );
@@ -222,9 +223,6 @@
 
 			}
 
-			window.editor = editor;
-			window.THREE = THREE;
-
 			/*
 			window.addEventListener( 'message', function ( event ) {