-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (45 loc) · 4.17 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
<html lang="en"><head><!-- The first thing in any HTML file should be the charset --><meta charset="utf-8"><title>Git Hub</title><!-- Use minimum-scale=1 to enable GPU rasterization --><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><!-- Add to homescreen for Chrome on Android --><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Git Hub"><!-- Add to homescreen for Safari on iOS --><!-- Chrome for Android theme color --><meta name="theme-color" content="#000000"><!-- Allow installing the app to the homescreen --><!--<link rel="manifest" href="/manifest.json">--><!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">--><link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"></head><body><!-- Display a message if JS has been disabled on the browser. --><noscript>If you"re seeing this message, that means <strong>JavaScript has been disabled on your browser</strong>, please <strong>enable JS</strong> to make this app work.</noscript><!-- The app hooks into this div --><div id="app"></div><script type="text/javascript">if (window.location.protocol == "http:" && !location.href.match(/localhost/) && window.location.port != 3000) {
window.location.href = `https://${window.location.hostname}`
}
// if ("serviceWorker" in navigator) {
// // console.log("Check in sw register")
// // navigator.serviceWorker.register("./service-worker.js", { scope: "/" })
// // Delay registration until after the page has loaded, to ensure that our
// // precaching requests don"t degrade the first visit experience.
// window.addEventListener("load", function () {
// // Your service-worker.js *must* be located at the top-level directory relative to your site.
// // It won"t be able to control pages unless it"s located at the same level or higher than them.
// // *Don"t* register service worker file in, e.g., a scripts/ sub-directory!
// // See https://github.com/slightlyoff/ServiceWorker/issues/468
// navigator.serviceWorker.register("/service-worker.js", { scope: "/" }).then(function (reg) {
// // updatefound is fired if service-worker.js changes.
// reg.onupdatefound = function () {
// // The updatefound event implies that reg.installing is set; see
// // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-container-updatefound-event
// var installingWorker = reg.installing
// installingWorker.onstatechange = function () {
// switch (installingWorker.state) {
// case "installed":
// if (navigator.serviceWorker.controller) {
// // At this point, the old content will have been purged and the fresh content will
// // have been added to the cache.
// // It"s the perfect time to display a "New content is available; please refresh."
// // message in the page"s interface.
// console.log("New or updated content is available.")
// } else {
// // At this point, everything has been precached.
// // It"s the perfect time to display a "Content is cached for offline use." message.
// console.log("Content is now available offline!")
// }
// break;
// case "redundant":
// console.error("The installing service worker became redundant.")
// break
// }
// }
// }
// }).catch(function (e) {
// console.error("Error during service worker registration:", e)
// })
// })
// }</script><!-- Open Sans Font --><!-- A lot of magic happens in this file. HtmlWebpackPlugin automatically includes all assets (e.g. bundle.js, main.css) with the correct HTML tags, which is why they are missing in this HTML file. Don"t add any assets here! (Check out the webpack config files in internals/webpack for details) --><script type="text/javascript" src="/bundle-5.js"></script></body></html>