Skip to content

Commit

Permalink
update deps + fix sw
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Oct 6, 2023
1 parent ae37f18 commit 6ea1b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@toruslabs/openlogin-subkey": "^4.7.2",
"@toruslabs/openlogin-utils": "^4.7.0",
"@uniswap/default-token-list": "^11.5.0",
"@walletconnect/sign-client": "^2.10.0",
"@walletconnect/utils": "^2.10.0",
"@walletconnect/sign-client": "^2.10.1",
"@walletconnect/utils": "^2.10.1",
"await-semaphore": "^0.1.3",
"bignumber.js": "^9.1.1",
"bn.js": "^5.2.1",
Expand Down
3 changes: 2 additions & 1 deletion src/registerServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function register(config) {

function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl, { updateViaCache: 'all', scope: process.env.BASE_URL })
.register(swUrl, { updateViaCache: 'imports', scope: process.env.BASE_URL })
.then((registration) => {
registration.onupdatefound = () => {
const installingWorker = registration.installing
Expand Down Expand Up @@ -104,6 +104,7 @@ function registerValidSW(swUrl, config) {
function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl, {
cache: 'no-cache',
headers: { 'Service-Worker': 'script' },
})
.then((response) => {
Expand Down

0 comments on commit 6ea1b04

Please sign in to comment.