-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (33 loc) · 873 Bytes
/
index.html
File metadata and controls
35 lines (33 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!-- @format -->
<!DOCTYPE html>
<html class="dark" color-theme="system" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Webpack One App</title>
</head>
<body>
<h1>Hello world!</h1>
<h2>Tip: Check your console</h2>
<p>This is the webpack One configuration test output.</p>
</body>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("service-worker.js")
.then((registration) => {
console.log("Service Worker registered: ", registration);
})
.catch((registrationError) => {
console.error(
"Service Worker registration failed: ",
registrationError
);
});
});
}
</script>
<script>
index.js;
</script>
</html>