Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist
node_modules
serviceworker.js

package-lock.json

/*.js
Expand Down
3 changes: 3 additions & 0 deletions gulpfile.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ const buildweb = gulp.parallel(
'!./node_modules/emglken/build/bocfel-core.wasm',
'./node_modules/jquery/dist/jquery.min.js',
'src/upstream/glkote/waiting.gif',
'src/web/manifest.json',
'src/web/*.png',
'src/web/*.svg',
],
target: 'web',
}),
Expand Down
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
<script src="dist/web/jquery.min.js"></script>
<script src="dist/web/ie.js" nomodule></script>
<script src="dist/web/main.js" type="module"></script>
<script>
var useServiceWorker = (location.protocol === 'https:' && 'serviceWorker' in navigator);
if (useServiceWorker) {
navigator.serviceWorker.register('serviceworker.js').then(function (registration) {
console.log('ServiceWorker registration successful');
navigator.serviceWorker.addEventListener('controllerchange', function() {
console.log('controllerchanged');
location.reload();
})
}).catch(function (err) {
console.error('ServiceWorker registration failed: ', err);
});
}
</script>
<link rel="manifest" href="dist/web/manifest.json">
<link rel="stylesheet" href="dist/web/web.css">
</head>
<body>
Expand Down
Binary file added src/web/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/web/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading