"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",
const cspHtml = (
<meta
http-equiv="Content-Security-Policy"
- content="default-src data:; connect-src * ws: wss:; frame-src *; img-src * data:; script-src 'self'; style-src 'self' 'unsafe-inline'"
+ content="default-src data: 'self'; connect-src * ws: wss:; frame-src *; img-src * data:; script-src 'self'; style-src 'self' 'unsafe-inline'; manifest-src 'self'"
/>
);
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.'
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"