Explorar o código

Merge pull request #8184 from Mugen87/dev

#8170 Example Viewer: Replaced "view-source" protocol with github link
Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
bd96b33779
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      examples/index.html

+ 1 - 4
examples/index.html

@@ -276,10 +276,7 @@
 		button.textContent = 'View source';
 		button.addEventListener( 'click', function ( event ) {
 
-			var array = location.href.split( '/' );
-			array.pop();
-
-			window.open( 'view-source:' + array.join( '/' ) + '/' + selected + '.html' );
+			window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
 
 		}, false );
 		button.style.display = 'none';