Skip to content

Commit ac37ad2

Browse files
Get sourcemaps working in devtools
1 parent 8c5112e commit ac37ad2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@ <h3>Acknowledgments</h3>
291291
</div>
292292
</div>
293293

294-
<script type="module">
295-
import initApp from "./src/js/main";
296-
297-
window.onload = async () => {
298-
await initApp();
299-
};
300-
</script>
294+
<script type="module" src="src/js/main.ts"></script>
301295
</body>
302296
</html>

src/js/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ export default async function initApp(): Promise<void> {
4848
viewToggle.initialize();
4949
filterManager.initialize();
5050
}
51+
52+
window.onload = async () => {
53+
await initApp();
54+
};

0 commit comments

Comments
 (0)