We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c40e5 commit ba85a3eCopy full SHA for ba85a3e
examples/index.html
@@ -295,17 +295,7 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
295
button.textContent = 'View source';
296
button.addEventListener( 'click', function ( event ) {
297
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
- }
+ window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
309
310
}, false );
311
button.style.display = 'none';
0 commit comments