(win: Window)
| 38 | }; |
| 39 | |
| 40 | const detectPlatforms = (win: Window) => { |
| 41 | const customPlatformMethods = config.get('platform'); |
| 42 | return (Object.keys(PLATFORMS_MAP) as Platforms[]).filter((p) => { |
| 43 | const customMethod = customPlatformMethods?.[p]; |
| 44 | return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win); |
| 45 | }); |
| 46 | }; |
| 47 | |
| 48 | const isMobileWeb = (win: Window): boolean => isMobile(win) && !isHybrid(win); |
| 49 |