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

View File

@ -1,5 +1,10 @@
/* global Android */ /* 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'); const b64 = require('base64-js');
function arrayToB64(array) { function arrayToB64(array) {