Skip to content

Commit

Permalink
Add delete logic
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mn-yral committed Aug 31, 2023
1 parent c20cae3 commit dd4aee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web-client/src/stores/popups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export function hideSplashScreen(timeoutMs: number = 2000) {
if (get(splashScreenPopup).shown) return
if (splashScreenTimeOut) clearTimeout(splashScreenTimeOut)
splashScreenTimeOut = setTimeout(() => {
const el = document.getElementsByTagName('splash-screen')
if (el && el[0]) {
el[0].remove()
}
splashScreenPopup.set({ show: false, shown: true })
}, timeoutMs)
}

0 comments on commit dd4aee0

Please sign in to comment.