diff --git a/examples/index.html b/examples/index.html index 4a8ee0981cbdf33079cdc378a42d6f740d988c17..98aaadc862da6275c28ab92073d4054f2e82c6f4 100644 --- a/examples/index.html +++ b/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';