Skip to content

Commit b932ba1

Browse files
committed
Bye bye view-source: links.
1 parent 423df35 commit b932ba1

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
@@ -282,17 +282,7 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
282282
button.textContent = 'View source';
283283
button.addEventListener( 'click', function ( event ) {
284284

285-
try {
286-
287-
var url = location.href.split( '/' ).slice( 0, - 1 ).join( '/' );
288-
window.open( 'view-source:' + url + '/' + selected + '.html' );
289-
290-
} catch ( e ) {
291-
292-
window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
293-
console.log( e );
294-
295-
}
285+
window.open( 'https://github.com/mrdoob/three.js/blob/master/examples/' + selected + '.html' );
296286

297287
}, false );
298288
button.style.display = 'none';

0 commit comments

Comments
 (0)