Skip to content
Permalink
Browse files

properly remove loading (#284)

  • Loading branch information...
maxence-charriere committed Jul 25, 2019
1 parent 1580477 commit e2a786b82d6fa438484ebbaafd74454843f04258
Showing with 10 additions and 2 deletions.
  1. +5 −1 internal/http/page.js
  2. +5 −1 internal/http/templates.go
@@ -78,7 +78,11 @@ function setRoot (change = {}) {
return
}

document.body.replaceChild(root, document.body.firstChild)
while (document.body.firstChild) {
document.body.removeChild(document.body.firstChild)
}

document.body.appendChild(root)
}

function newNode (change = {}) {
@@ -363,7 +363,11 @@ function setRoot (change = {}) {
return
}
document.body.replaceChild(root, document.body.firstChild)
while (document.body.firstChild) {
document.body.removeChild(document.body.firstChild)
}
document.body.appendChild(root)
}
function newNode (change = {}) {

0 comments on commit e2a786b

Please sign in to comment.
You can’t perform that action at this time.