Skip to content

Commit 8899f9b

Browse files
committed
fix(capacitor): reference todo ticket, fix boolean conversion
1 parent a9c20af commit 8899f9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/utils/platform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ const isCordova = (win: any): boolean => !!(win['cordova'] || win['phonegap'] ||
9999

100100
const isCapacitorNative = (win: any): boolean => {
101101
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());
102+
// TODO(ROU-11693): Remove when we no longer support Capacitor 2, which does not have isNativePlatform
103+
return !!(capacitor?.isNative || (capacitor?.isNativePlatform && !!capacitor.isNativePlatform()));
104104
};
105105

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

0 commit comments

Comments
 (0)