Trying to fix manifest csp.
This commit is contained in:
parent
a4e207bde7
commit
b754a50dff
4 changed files with 21 additions and 21 deletions
|
@ -87,7 +87,7 @@ server.get('/*', async (req, res) => {
|
|||
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'"
|
||||
/>
|
||||
);
|
||||
|
||||
|
|
|
@ -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.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue