We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cb434 commit 770e85eCopy full SHA for 770e85e
public/index.html
@@ -12,6 +12,15 @@
12
<div id="app">
13
<div id="game-container"></div>
14
</div>
15
- <script type="module" src="./bundle.min.js"></script>
+ <script id="bundle-script" type="module" src="./bundle.min.js"></script>
16
+ <script>
17
+ const scriptElement = document.querySelector("#bundle-script");
18
+
19
+ if (scriptElement) {
20
+ const scrUrl = scriptElement.getAttribute("src");
21
22
+ scriptElement.setAttribute("src", `${scrUrl}?t=${new Date().getTime()}`);
23
+ }
24
+ </script>
25
</body>
26
</html>
0 commit comments