Skip to content

Commit 1b2b63a

Browse files
authored
Merge branch 'main' into fix/expo-sqlite-adapter-export
2 parents 2c8afb9 + 96fdd13 commit 1b2b63a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/rtn-web-browser/src/apis/openAuthSessionAsync.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@ let appStateListener: NativeEventSubscription | undefined;
1515
let redirectListener: NativeEventSubscription | undefined;
1616

1717
export async function isChromebook(): Promise<boolean> {
18-
// expo go
19-
try {
20-
const Device = require('expo-device');
21-
if (Device?.hasPlatformFeatureAsync) {
22-
if (await Device.hasPlatformFeatureAsync('org.chromium.arc')) return true;
23-
if (
24-
await Device.hasPlatformFeatureAsync(
25-
'org.chromium.arc.device_management',
26-
)
27-
)
28-
return true;
29-
}
30-
} catch {
31-
// not using Expo
32-
}
33-
34-
// fallback to native module
3518
try {
3619
const nm = (NativeModules as any)?.ChromeOS;
3720
if (nm?.isChromeOS) return !!(await nm.isChromeOS());

0 commit comments

Comments
 (0)