summaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-14 13:55:51 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-14 13:55:51 +0200
commit39e78eac1d53b8ebc5e69f127dec5ee5b623a274 (patch)
treedf5bd69685cadc90ed10a0596d097fad26b9399f /public/index.html
parentd1435a137bb50c514de8a79fa0c80264dfbb9f35 (diff)
dont clobber seq/chp
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/index.html b/public/index.html
index 6b36c54..1a2d81c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -17,7 +17,8 @@
<script src='/socket.io/socket.io.js'></script>
<script>
var s = document.createElement('script');
- s.setAttribute('src','/bundle.js?' + Date.now());
+ var a = window.location.href.match('localhost') ? Date.now() : (Math.round(Date.now() / 3600000) * 3600000)
+ s.setAttribute('src','/bundle.js?' + a);
document.body.appendChild(s)
</script>
</html> \ No newline at end of file