diff --git a/app/utils.js b/app/utils.js index 65a17262..a71cd70f 100644 --- a/app/utils.js +++ b/app/utils.js @@ -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) {