Skip to content

Commit fe280d6

Browse files
committed
Refactor module loading in index.html: remove cache-busting logic for cleaner import
1 parent 76659f2 commit fe280d6

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

index.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,10 @@ <h2 id="sessionPingsHeading" class="text-sm font-medium">Session Pings</h2>
196196
</div>
197197
</main>
198198

199-
<script type="module">
200-
const cacheBuster = Date.now();
201-
import(`/content/wardrive.js?v=${cacheBuster}`)
202-
.then(module => {
203-
console.log('Module loaded:', module);
204-
module.onLoad();
205-
})
206-
.catch(error => {
207-
console. error('Failed to load module:', error);
208-
});
209-
</script>
199+
<script type="module">
200+
import { onLoad } from '/content/wardrive.js';
201+
onLoad();
202+
</script>
203+
210204
</body>
211205
</html>

0 commit comments

Comments
 (0)