Update source

This commit is contained in:
Kenox 2022-11-04 09:14:08 +01:00
commit 3d436d4db4
2 changed files with 5 additions and 1 deletions

View file

@ -129,6 +129,10 @@ haste.prototype.configureKey = function(enable) {
// Remove the current document (if there is one) // Remove the current document (if there is one)
// and set up for a new one // and set up for a new one
haste.prototype.newDocument = function(hideHistory) { haste.prototype.newDocument = function(hideHistory) {
const elements = document.getElementsByTagName('code');
while(elements.length > 0){
elements[0].parentNode.removeChild(elements[0]);
}
this.$box.hide(); this.$box.hide();
this.doc = new haste_document(); this.doc = new haste_document();
this.setTitle(); this.setTitle();

File diff suppressed because one or more lines are too long