fix(ui): remove index.html from service worker cache after creating admin user (#3642)

This commit is contained in:
Kendall Garner
2025-01-12 23:32:02 +00:00
committed by GitHub
parent 3179966270
commit 920fd53e58
3 changed files with 24 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@ import { v4 as uuidv4 } from 'uuid'
import { baseUrl } from '../utils'
import config from '../config'
import { jwtDecode } from 'jwt-decode'
import { removeHomeCache } from '../utils/removeHomeCache'
const customAuthorizationHeader = 'X-ND-Authorization'
const clientUniqueIdHeader = 'X-ND-Client-Unique-Id'
@@ -26,6 +27,7 @@ const httpClient = (url, options = {}) => {
localStorage.setItem('userId', decoded.uid)
// Avoid going to create admin dialog after logout/login without a refresh
config.firstTime = false
removeHomeCache()
}
return response
})