Skip to content

Commit ba85a3e

Browse files
committed
Bye bye view-source: links.
1 parent 02c40e5 commit ba85a3e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

examples/index.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -295,17 +295,7 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
295295
button.textContent = 'View source';
296296
button.addEventListener( 'click', function ( event ) {
297297

298-
try {
299-
300-
var url = location.href.split( '/' ).slice( 0, - 1 ).join( '/' );
301-
window.open( 'view-source:' + url + '/' + selected + '.html' );
302-
303-
} catch ( e ) {
304-
305-
window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
306-
console.log( e );
307-
308-
}
298+
window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
309299

310300
}, false );
311301
button.style.display = 'none';

0 commit comments

Comments
 (0)