File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
packages/rtn-web-browser/src/apis Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,6 @@ let appStateListener: NativeEventSubscription | undefined;
15
15
let redirectListener : NativeEventSubscription | undefined ;
16
16
17
17
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
35
18
try {
36
19
const nm = ( NativeModules as any ) ?. ChromeOS ;
37
20
if ( nm ?. isChromeOS ) return ! ! ( await nm . isChromeOS ( ) ) ;
You can’t perform that action at this time.
0 commit comments