mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 00:03:09 -07:00
Fix issues with reloading
This commit is contained in:
parent
862499434c
commit
232d85379d
2 changed files with 12 additions and 12 deletions
|
@ -248,8 +248,8 @@ haste.prototype.loadDocument = function(key) {
|
|||
_this.doc = new haste_document();
|
||||
_this.doc.load(parts[0], function(ret) {
|
||||
if (ret) {
|
||||
var lines = ret.value.split(/\r\n|\r|\n/);
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
const lines = ret.value.split(/\r\n|\r|\n/);
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
let code = document.createElement('code');
|
||||
code.innerHTML = lines[i];
|
||||
let pre = document.getElementById("box");
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue