This commit is contained in:
parent
e929811150
commit
f44e90d8cc
1 changed files with 2 additions and 2 deletions
|
@ -38,13 +38,13 @@ export function App() {
|
||||||
const localBuild = localStorage.getItem('repl:buildVersion')
|
const localBuild = localStorage.getItem('repl:buildVersion')
|
||||||
const latestBuild: string = import.meta.env.BUILD_VERSION
|
const latestBuild: string = import.meta.env.BUILD_VERSION
|
||||||
|
|
||||||
if (localBuild === null || new Date(localBuild) !== new Date(latestBuild)) {
|
if (localBuild === null || localBuild !== latestBuild) {
|
||||||
localStorage.setItem('repl:buildVersion', latestBuild)
|
localStorage.setItem('repl:buildVersion', latestBuild)
|
||||||
queryClient.clear()
|
queryClient.clear()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
toast.custom(t => (
|
toast.custom(t => (
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer items-center rounded-md border p-6"
|
class="flex cursor-pointer items-center overflow-hidden rounded-md border p-6"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setShowChangelog(true)
|
setShowChangelog(true)
|
||||||
toast.dismiss(t)
|
toast.dismiss(t)
|
||||||
|
|
Loading…
Reference in a new issue