added deleteInternalStorage util

This commit is contained in:
SrGooglo 2022-11-21 12:00:41 +00:00
parent 429584a322
commit 53b5b37a26
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,15 @@
import cookies from "js-cookie"
export default () => {
window.localStorage.clear()
window.sessionStorage.clear()
// delete all cookies
const allCookies = cookies.get()
for (const cookieName in allCookies) {
cookies.remove(cookieName)
}
location.reload()
}

View File

@ -3,4 +3,5 @@ export { default as findChildById } from "./findChildById"
export { default as cursorPosition } from "./cursorPosition"
export { default as getBase64 } from "./getBase64"
export { default as Haptics } from "./haptics"
export { default as processString } from "./processString"
export { default as processString } from "./processString"
export { default as deleteInternalStorage } from "./deleteInternalStorage"