Skip to content

Commit e5279ef

Browse files
committed
add esm-server
1 parent 4391218 commit e5279ef

8 files changed

+493
-2550
lines changed

Diff for: index.html

+11-10
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,20 @@
1919
</style>
2020
<script src="https://www.gstatic.com/firebasejs/8.2.1/firebase-app.js"></script>
2121
<script src="https://www.gstatic.com/firebasejs/8.2.1/firebase-database.js"></script>
22+
<script src="https://unpkg.com/apprun/dist/apprun-dev-tools.js"></script>
2223
</head>
2324
<body>
24-
<script src="dist/app.js"></script>
25+
<script type="module" src="dist/app.js"></script>
2526
<script>
26-
if ('serviceWorker' in navigator) {
27-
navigator.serviceWorker.register('sw.js').then(function (registration) {
28-
// Registration was successful
29-
console.log('ServiceWorker registration successful with scope: ', registration.scope);
30-
}).catch(function (err) {
31-
// registration failed :(
32-
console.log('ServiceWorker registration failed: ', err);
33-
});
34-
}
27+
// if ('serviceWorker' in navigator) {
28+
// navigator.serviceWorker.register('sw.js').then(function (registration) {
29+
// // Registration was successful
30+
// console.log('ServiceWorker registration successful with scope: ', registration.scope);
31+
// }).catch(function (err) {
32+
// // registration failed :(
33+
// console.log('ServiceWorker registration failed: ', err);
34+
// });
35+
// }
3536
</script>
3637
</body>
3738
</html>

0 commit comments

Comments
 (0)