diff --git a/loading-server/public/shuttle.js b/loading-server/public/shuttle.js index f5f9a82..6b9b58c 100644 --- a/loading-server/public/shuttle.js +++ b/loading-server/public/shuttle.js @@ -111,13 +111,14 @@ function renderWorkerFrame () { ); } -export async function error (...msg) { +async function error (...msg) { console.warn(...msg); if (!mothership) return; mothership.postMessage({ action: SND_ERROR, msg, id: workerId }); } -export async function warn (...msg) { +// eslint-disable-next-line +async function warn (...msg) { console.warn(...msg); if (!mothership) return; mothership.postMessage({ action: SND_WARNING, msg, id: workerId }); diff --git a/loading-server/public/worker.js b/loading-server/public/worker.js index fd9a082..5977ad8 100644 --- a/loading-server/public/worker.js +++ b/loading-server/public/worker.js @@ -116,7 +116,8 @@ function bodify (body) { // NOTE: these just get copied around because browsers don't all support import // in SW yet. -export async function warn (...msg) { +// eslint-disable-next-line +async function warn (...msg) { console.warn(...msg); if (!shuttle) return; shuttle.postMessage({ action: SND_WARNING, msg, id });