fixed build

This commit is contained in:
Carl Fredrik Samson
2020-01-27 01:41:13 +01:00
parent b1c0bf1ae3
commit 165409b174
14 changed files with 780 additions and 208 deletions

View File

@@ -177,6 +177,21 @@
</div>
<!-- Livereload script (if served using the cli tool) -->
<script type="text/javascript">
var socket = new WebSocket("ws://localhost:3001");
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload(true); // force reload from server (not from cache)
}
};
window.onbeforeunload = function() {
socket.close();
}
</script>