mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 00:03:09 -07:00
Update source
This commit is contained in:
parent
805d9cf0c2
commit
3d436d4db4
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
|
|
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