diff options
Diffstat (limited to 'public/index.html')
| -rw-r--r-- | public/index.html | 3 |
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 |
