Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(loader): Uses IE compatible APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Feb 17, 2018
1 parent 8caf337 commit 14deeb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/embed/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const script = tag('script', `
window.addEventListener('load', function() {
loader.className += ' done'
setTimeout(loader.remove, 300)
setTimeout(function () {
loader.parentNode.removeChild(loader)
}, 300)
})
`)

Expand Down

0 comments on commit 14deeb1

Please sign in to comment.