Explorar o código

Editor: Edit opens a new window.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
fc97a16c89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/js/libs/app/index.html

+ 1 - 1
editor/js/libs/app/index.html

@@ -52,7 +52,7 @@
 					button.addEventListener( 'click', function ( event ) {
 
 						var url = location.href.split( '/' ).slice( 0, - 1 ).join( '/' );
-						location.href = 'http://threejs.org/editor/#file=https://crossorigin.me/' + url + '/app.json';
+						window.open( 'http://threejs.org/editor/#file=https://crossorigin.me/' + url + '/app.json' );
 
 					}, false );
 					document.body.appendChild( button );