Skip to content

Commit 770e85e

Browse files
committed
- update index.html
1 parent 27cb434 commit 770e85e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

public/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
<div id="app">
1313
<div id="game-container"></div>
1414
</div>
15-
<script type="module" src="./bundle.min.js"></script>
15+
<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>
1625
</body>
1726
</html>

0 commit comments

Comments
 (0)