-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
19 lines (19 loc) · 1.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="google" value="notranslate"><link rel="shortcut icon" href="static/favicon.ico"><title>Smalruby</title><script src="static/javascripts/setup-opal.js"></script><style><!--
.ruby-error {
background-color: pink;
position: absolute;
z-index: 3;
}
--></style><script defer="defer" src="gui.js"></script><meta name="apple-mobile-web-app-title" content="Smalruby" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="apple-mobile-web-app-status-bar-style" content="default" /><link rel="manifest" href="./manifest.03e6cf7c32e032a7fad3a430ab229277.json" crossorigin="use-credentials" /></head><body><script>if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('./service-worker.js').then(function (registration) {
console.log('PWA worker registration successful', registration.scope);
}, function (err) {
console.log('PWA worker registration failed', err);
}).catch(function (err) {
console.log(err);
});
});
} else {
console.log('Service Worker is not supported by browser.');
}</script></body></html>