Move service worker into platform
This commit is contained in:
parent
87e67d8168
commit
e077d9ca5f
3 changed files with 8 additions and 5 deletions
|
@ -29,11 +29,6 @@ require('katex/dist/katex.css');
|
|||
import {parseQsFromFragment} from "./url_utils";
|
||||
import './modernizr';
|
||||
|
||||
// load service worker if available on this platform
|
||||
if (!window.electron && 'serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('sw.js');
|
||||
}
|
||||
|
||||
async function settled(...promises: Array<Promise<any>>) {
|
||||
for (const prom of promises) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue