13 lines
314 B
TypeScript
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.
|
|
});
|
|
});
|