Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #64 from Aweary/fix-demo-innerhtml
Browse files Browse the repository at this point in the history
Don't set innerHTML in demo unless it's empty
  • Loading branch information
tptee committed Sep 20, 2016
2 parents 1a8e826 + c10b28b commit a8a0276
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/index.html
Expand Up @@ -49,8 +49,9 @@
// Sanity-check the component loaded...
setTimeout(function () {
var content = document.querySelector("#content");
content.innerHTML = content.innerHTML ||
"If you can see this, something is broken (or JS is not enabled)!";
if (!content.innerHTML) {
content.innerHTML = "If you can see this, something is broken (or JS is not enabled)!";
}
}, 500);
</script>
</body>
Expand Down

0 comments on commit a8a0276

Please sign in to comment.