Browse Source

Bye bye view-source: links.

Mr.doob 8 years ago
parent
commit
b932ba1a1b
1 changed files with 1 additions and 11 deletions
  1. 1 11
      examples/index.html

+ 1 - 11
examples/index.html

@@ -282,17 +282,7 @@
 		button.textContent = 'View source';
 		button.addEventListener( 'click', function ( event ) {
 
-			try {
-
-				var url = location.href.split( '/' ).slice( 0, - 1 ).join( '/' );
-				window.open( 'view-source:' + url + '/' + selected + '.html' );
-
-			} catch ( e ) {
-
-				window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
-				console.log( e );
-
-			}
+			window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
 
 		}, false );
 		button.style.display = 'none';