Skip to content

Commit cbd3a9f

Browse files
authored
replace deprecated method
1 parent 14b6538 commit cbd3a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/utils/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const isCordova = (win: any): boolean => !!(win['cordova'] || win['phonegap'] ||
9999

100100
const isCapacitorNative = (win: any): boolean => {
101101
const capacitor = win['Capacitor'];
102-
return !!capacitor?.isNative;
102+
return !!capacitor?.isNativePlatform();
103103
};
104104

105105
const isElectron = (win: Window): boolean => testUserAgent(win, /electron/i);

0 commit comments

Comments
 (0)