We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c20af commit 8899f9bCopy full SHA for 8899f9b
core/src/utils/platform.ts
@@ -99,8 +99,8 @@ const isCordova = (win: any): boolean => !!(win['cordova'] || win['phonegap'] ||
99
100
const isCapacitorNative = (win: any): boolean => {
101
const capacitor = win['Capacitor'];
102
- // TODO: Remove when we no longer support Capacitor 2, which does not have isNativePlatform
103
- return !!capacitor?.isNative || (capacitor?.isNativePlatform && !!capacitor.isNativePlatform());
+ // TODO(ROU-11693): Remove when we no longer support Capacitor 2, which does not have isNativePlatform
+ return !!(capacitor?.isNative || (capacitor?.isNativePlatform && !!capacitor.isNativePlatform()));
104
};
105
106
const isElectron = (win: Window): boolean => testUserAgent(win, /electron/i);
0 commit comments