From dd4aee025c3a7811678e56b7088acdc4ef31baf1 Mon Sep 17 00:00:00 2001 From: harshbaz Date: Thu, 31 Aug 2023 09:31:05 +0530 Subject: [PATCH] Add delete logic --- packages/web-client/src/stores/popups.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web-client/src/stores/popups.ts b/packages/web-client/src/stores/popups.ts index fa43e2523..9db29b0f4 100644 --- a/packages/web-client/src/stores/popups.ts +++ b/packages/web-client/src/stores/popups.ts @@ -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) }