Skip to content

Commit

Permalink
update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kyohei8 committed May 17, 2017
1 parent fc9893e commit 393dff0
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@
<div id="app"></div>
</body>
<script>
window.ipcRenderer = require('electron').ipcRenderer;
{
const scripts = [];
scripts.push(
(process.env.HOT)
? 'http://127.0.0.1:8080/assets/app.bundle.js'
: '../app/dist/app.bundle.js'
);
document.write(
scripts
.map(script => '<script defer src="' + script + '"><\/script>')
.join('')
);
}
window.ipcRenderer = require('electron').ipcRenderer;
</script>
<script>
const scripts = [];
scripts.push(
process.env.HOT ? 'http://127.0.0.1:8080/assets/app.bundle.js' : '../app/dist/app.bundle.js'
);
document.write(
scripts
.map(script => '<script defer src="' + script + '"><\/script>')
.join('')
);
</script>
</html>

0 comments on commit 393dff0

Please sign in to comment.