Skip to content

Commit 8f0b54b

Browse files
committed
page reload timeout
1 parent 47751e6 commit 8f0b54b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ export default function App() {
190190
function update() {
191191
updateServiceWorker(true)
192192
// Trigger page reload
193-
window.location.reload()
194-
setTimeout(() => {}, 500)
193+
setTimeout(() => {
194+
window.location.reload()
195+
}, 500)
195196
}
196197

197198
function onUpdate() {

0 commit comments

Comments
 (0)