mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Trying to fix manifest csp.
This commit is contained in:
parent
a4e207bde7
commit
b754a50dff
4 changed files with 21 additions and 21 deletions
|
@ -67,7 +67,7 @@
|
||||||
"eslint": "^7.18.0",
|
"eslint": "^7.18.0",
|
||||||
"eslint-plugin-jane": "^9.0.6",
|
"eslint-plugin-jane": "^9.0.6",
|
||||||
"husky": "^4.3.8",
|
"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",
|
"lint-staged": "^10.5.3",
|
||||||
"mini-css-extract-plugin": "^1.3.4",
|
"mini-css-extract-plugin": "^1.3.4",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
|
|
|
@ -87,7 +87,7 @@ server.get('/*', async (req, res) => {
|
||||||
const cspHtml = (
|
const cspHtml = (
|
||||||
<meta
|
<meta
|
||||||
http-equiv="Content-Security-Policy"
|
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'"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -2,21 +2,21 @@ import { register } from 'register-service-worker';
|
||||||
|
|
||||||
register('/service-worker.js', {
|
register('/service-worker.js', {
|
||||||
registrationOptions: { scope: './' },
|
registrationOptions: { scope: './' },
|
||||||
// ready(registration) {
|
ready(registration) {
|
||||||
// console.log('Service worker is active.');
|
console.log('Service worker is active.');
|
||||||
// },
|
},
|
||||||
// registered(registration) {
|
registered(registration) {
|
||||||
// console.log('Service worker has been registered.');
|
console.log('Service worker has been registered.');
|
||||||
// },
|
},
|
||||||
// cached(registration) {
|
cached(registration) {
|
||||||
// console.log('Content has been cached for offline use.');
|
console.log('Content has been cached for offline use.');
|
||||||
// },
|
},
|
||||||
// updatefound(registration) {
|
updatefound(registration) {
|
||||||
// console.log('New content is downloading.');
|
console.log('New content is downloading.');
|
||||||
// },
|
},
|
||||||
// updated(registration) {
|
updated(registration) {
|
||||||
// console.log('New content is available; please refresh.');
|
console.log('New content is available; please refresh.');
|
||||||
// },
|
},
|
||||||
offline() {
|
offline() {
|
||||||
console.log(
|
console.log(
|
||||||
'No internet connection found. App is running in offline mode.'
|
'No internet connection found. App is running in offline mode.'
|
||||||
|
|
|
@ -5629,10 +5629,10 @@ lcid@^1.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
invert-kv "^1.0.0"
|
invert-kv "^1.0.0"
|
||||||
|
|
||||||
lemmy-js-client@0.9.0-rc.16:
|
lemmy-js-client@0.9.0-rc.18:
|
||||||
version "0.9.0-rc.16"
|
version "0.9.0-rc.18"
|
||||||
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.0-rc.16.tgz#4cb01bee5821d05f477857877879a7a7e1711cce"
|
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.0-rc.18.tgz#ad565166cfb541f61a8e816f66b554310246581e"
|
||||||
integrity sha512-x5LRpXtUFDSMLqcNY/r6mttc4rrzedyfcQdudStPJlZaX4L8FSfBa3A1T8I1m4/UaVeIIXZjV2dl306LaQqOvw==
|
integrity sha512-6jeBCQa8FRfvGxL80GkNXsOfC3+kOSvpeQVXxKkNxnr+AfnBV9xbJZQuAvfyb7uC5HLqvPP1vHHrq2ZVIaHpTQ==
|
||||||
|
|
||||||
levn@^0.4.1:
|
levn@^0.4.1:
|
||||||
version "0.4.1"
|
version "0.4.1"
|
||||||
|
|
Loading…
Reference in a new issue