fixed bug for highlighting not working on new document

This commit is contained in:
Colin 2024-07-23 15:16:12 -07:00
commit c8fad99f90

View file

@ -281,6 +281,10 @@ haste.prototype.lockDocument = function() {
_this.$textarea.val('').hide(); _this.$textarea.val('').hide();
_this.$box.show().focus(); _this.$box.show().focus();
_this.addLineNumbers(ret.lineCount); _this.addLineNumbers(ret.lineCount);
// Load Document Again
var path = window.location.href;
console.log(path);
_this.loadDocument(path.split('#')[0].split('/').slice(-1)[0]);
} }
}); });
}; };