From cbd3a9f8486fb16c92f0bd474bd88526c64cdfbf Mon Sep 17 00:00:00 2001 From: r-yanyo Date: Mon, 17 Feb 2025 15:19:46 +0900 Subject: [PATCH] replace deprecated method --- core/src/utils/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/platform.ts b/core/src/utils/platform.ts index 622b81cac1..dc1336a156 100644 --- a/core/src/utils/platform.ts +++ b/core/src/utils/platform.ts @@ -99,7 +99,7 @@ const isCordova = (win: any): boolean => !!(win['cordova'] || win['phonegap'] || const isCapacitorNative = (win: any): boolean => { const capacitor = win['Capacitor']; - return !!capacitor?.isNative; + return !!capacitor?.isNativePlatform(); }; const isElectron = (win: Window): boolean => testUserAgent(win, /electron/i);