This commit is contained in:
Prad Nukala
2024-09-22 01:26:15 -04:00
parent 9a6de8d24e
commit df96e8d562
10 changed files with 108 additions and 101 deletions
+5 -1
View File
@@ -51,6 +51,11 @@ templ indexFile(cfg string) {
</html>
}
templ serviceWorker() {
<script>
</script>
}
script initializeMotr(config string) {
const motr = new Motr(JSON.parse(config));
@@ -100,7 +105,6 @@ script initializeMotr(config string) {
document.getElementById('output').innerHTML = `<p>Error: ${error.message}</p>`;
}
}
// Run the demo when the page loads
window.onload = demo;
}