提交 35bd9b1f authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix displaying the source code

上级 be24b57e
...@@ -77,6 +77,8 @@ function go(file, line) { ...@@ -77,6 +77,8 @@ function go(file, line) {
url += line; url += line;
url += "&build="; url += "&build=";
url += build; url += build;
get('file').innerHTML = file;
get('code').src = url;
} else { } else {
if (build && build > 0) { if (build && build > 0) {
var tag = 'tags/version-' + getVersion(build) + '/h2'; var tag = 'tags/version-' + getVersion(build) + '/h2';
...@@ -89,9 +91,9 @@ function go(file, line) { ...@@ -89,9 +91,9 @@ function go(file, line) {
url += file; url += file;
url += '#'; url += '#';
url += line; url += line;
// X-Frame-Options is now 'SAMEORIGIN'
window.open(url);
} }
get('file').innerHTML = file;
get('code').src = url;
} }
function convert() { function convert() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论