init
This commit is contained in:
12
frontend/plugins/01.splash-screen.client.ts
Normal file
12
frontend/plugins/01.splash-screen.client.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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.
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user