Files
antigol-service/frontend/plugins/01.splash-screen.client.ts
talorr cda36918e8 init
2026-03-27 03:36:08 +03:00

13 lines
314 B
TypeScript

import { Capacitor } from "@capacitor/core";
import { SplashScreen } from "@capacitor/splash-screen";
export default defineNuxtPlugin(() => {
if (!Capacitor.isNativePlatform()) {
return;
}
void SplashScreen.hide().catch(() => {
// Ignore hide errors if the native splash is already gone.
});
});