Update source

This commit is contained in:
Kenox 2022-11-04 09:11:35 +01:00
commit 805d9cf0c2
2 changed files with 7 additions and 1 deletions

View file

@ -250,6 +250,12 @@ haste.prototype.loadDocument = function(key) {
code.innerHTML = lines[i];
let pre = document.getElementById("box");
pre.appendChild(code);
code.onclick = function() {
var file = '/' + ret.key + "#" + (i + 1).toString();
window.history.pushState(null, _this.appName + '-' + ret.key, file);
highlightNew(code);
}
}
_this.setTitle(ret.key);

File diff suppressed because one or more lines are too long