summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/index.html b/public/index.html
index 1a2d81c..d1cb6f8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,7 +7,13 @@
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=yes' />
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
- <link rel='stylesheet' href='/assets/css/css.css'>
+ <script>
+ var s = document.createElement('link');
+ var a = window.location.href.match('localhost') ? Date.now() : (Math.round(Date.now() / 3600000) * 3600000)
+ s.setAttribute('rel', 'stylesheet');
+ s.setAttribute('href', '/assets/css/css.css?' + a);
+ document.querySelector('head').appendChild(s)
+ </script>
</head>
<body>