fixed sw initialization error

This commit is contained in:
Danny Coates 2019-11-05 20:37:44 -08:00
parent 4a956c0247
commit 2f34dffab4
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
/* global Android */
const html = require('choo/html');
let html;
try {
html = require('choo/html');
} catch (e) {
// running in the service worker
}
const b64 = require('base64-js');
function arrayToB64(array) {