mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 07:43:11 -07:00
Update source
This commit is contained in:
parent
4809354784
commit
455ab9cb64
1 changed files with 4 additions and 1 deletions
|
@ -238,7 +238,10 @@ haste.prototype.removeLineNumbers = function() {
|
|||
// Load a document and show it
|
||||
haste.prototype.loadDocument = function(key) {
|
||||
// remove all code elements from the page
|
||||
removeElementsByClass('code');
|
||||
const elements = document.getElementsByTagName('code');
|
||||
while(elements.length > 0){
|
||||
elements[0].parentNode.removeChild(elements[0]);
|
||||
}
|
||||
// Split the key up
|
||||
var parts = key.split('.', 2);
|
||||
// Ask for what we want
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue