提交 b932ba1a 编写于 作者: M Mr.doob

Bye bye view-source: links.

上级 423df354
......@@ -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';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册