Skip to content

Commit

Permalink
Merge pull request #604 from chentsulin/amilajack-patch-1
Browse files Browse the repository at this point in the history
Fix #423, Dynamic Script Injection Warning
  • Loading branch information
amilajack authored Dec 12, 2016
2 parents 109aa6a + 6564817 commit e06d653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = './dist/style.css';
document.write(link.outerHTML);
// HACK: Writing the script path should be done with webpack
document.getElementsByTagName('head')[0].appendChild(link);
}
}());
</script>
Expand All @@ -23,7 +24,8 @@
script.src = (process.env.HOT)
? 'http://localhost:' + port + '/dist/bundle.js'
: './dist/bundle.js';
document.write(script.outerHTML);
// HACK: Writing the script path should be done with webpack
document.body.appendChild(script);
}
</script>
</body>
Expand Down

0 comments on commit e06d653

Please sign in to comment.