Skip to content

Commit

Permalink
fix(soffit-pwa): deploy issues (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored Jan 19, 2023
2 parents f0d73cb + b07db77 commit a883eb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/element/src/helper/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function swStateChange(sw: ServiceWorker): void {
// if old controller available then its update else its new install
if (navigator.serviceWorker.controller) {
// send sw-updated signal;
setTimeout(() => window.location.reload(), 1_000); // temp
}
}
else if (sw.state === 'redundant') {
Expand Down
2 changes: 1 addition & 1 deletion uniquely/soffit-pwa/res/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"screenshots": [
{
"src": "/image/screenshot/home-page.jpg",
"src": "/image/screenshot/page-home.jpg",
"sizes": "333x720",
"type": "image/jpg",
"label": "Home Page"
Expand Down

0 comments on commit a883eb6

Please sign in to comment.