Forráskód Böngészése

Merge pull request #8184 from Mugen87/dev

#8170 Example Viewer: Replaced "view-source" protocol with github link
Mr.doob 9 éve
szülő
commit
bd96b33779
1 módosított fájl, 1 hozzáadás és 4 törlés
  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';