Skip to content

Commit

Permalink
Fix #423, Dynamic Script Injection Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack authored Dec 8, 2016
1 parent 0e0ae3e commit 6ed59a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = './dist/style.css';
document.write(link.outerHTML);
document.body.appendChild(link.outerHTML);
}
}());
</script>
Expand All @@ -23,7 +23,7 @@
script.src = (process.env.HOT)
? 'http://localhost:' + port + '/dist/bundle.js'
: './dist/bundle.js';
document.write(script.outerHTML);
document.body.appendChild(script.outerHTML);
}
</script>
</body>
Expand Down

0 comments on commit 6ed59a8

Please sign in to comment.