From b754a50dff43d40452879e1218da5ab4698f8a1c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 24 Jan 2021 13:52:52 -0500 Subject: [PATCH] Trying to fix manifest csp. --- package.json | 2 +- src/server/index.tsx | 2 +- src/service-worker.ts | 30 +++++++++++++++--------------- yarn.lock | 8 ++++---- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index ff63a80..d51344c 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "eslint": "^7.18.0", "eslint-plugin-jane": "^9.0.6", "husky": "^4.3.8", - "lemmy-js-client": "0.9.0-rc.16", + "lemmy-js-client": "0.9.0-rc.18", "lint-staged": "^10.5.3", "mini-css-extract-plugin": "^1.3.4", "node-fetch": "^2.6.1", diff --git a/src/server/index.tsx b/src/server/index.tsx index 10e935d..21b3d05 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -87,7 +87,7 @@ server.get('/*', async (req, res) => { const cspHtml = ( ); diff --git a/src/service-worker.ts b/src/service-worker.ts index ca9fe21..a7e1bd5 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -2,21 +2,21 @@ import { register } from 'register-service-worker'; register('/service-worker.js', { registrationOptions: { scope: './' }, - // ready(registration) { - // console.log('Service worker is active.'); - // }, - // registered(registration) { - // console.log('Service worker has been registered.'); - // }, - // cached(registration) { - // console.log('Content has been cached for offline use.'); - // }, - // updatefound(registration) { - // console.log('New content is downloading.'); - // }, - // updated(registration) { - // console.log('New content is available; please refresh.'); - // }, + ready(registration) { + console.log('Service worker is active.'); + }, + registered(registration) { + console.log('Service worker has been registered.'); + }, + cached(registration) { + console.log('Content has been cached for offline use.'); + }, + updatefound(registration) { + console.log('New content is downloading.'); + }, + updated(registration) { + console.log('New content is available; please refresh.'); + }, offline() { console.log( 'No internet connection found. App is running in offline mode.' diff --git a/yarn.lock b/yarn.lock index 90912bb..382f179 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5629,10 +5629,10 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -lemmy-js-client@0.9.0-rc.16: - version "0.9.0-rc.16" - resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.0-rc.16.tgz#4cb01bee5821d05f477857877879a7a7e1711cce" - integrity sha512-x5LRpXtUFDSMLqcNY/r6mttc4rrzedyfcQdudStPJlZaX4L8FSfBa3A1T8I1m4/UaVeIIXZjV2dl306LaQqOvw== +lemmy-js-client@0.9.0-rc.18: + version "0.9.0-rc.18" + resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.0-rc.18.tgz#ad565166cfb541f61a8e816f66b554310246581e" + integrity sha512-6jeBCQa8FRfvGxL80GkNXsOfC3+kOSvpeQVXxKkNxnr+AfnBV9xbJZQuAvfyb7uC5HLqvPP1vHHrq2ZVIaHpTQ== levn@^0.4.1: version "0.4.1" -- 2.44.1