MCPcopy Create free account
hub / github.com/apitable/apitable / isWindowsOS

Function isWindowsOS

packages/datasheet/src/pc/utils/os.ts:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import { isMobileApp } from './env';
21
22export const isWindowsOS = () => {
23 const agent = navigator.userAgent.toLowerCase();
24 if (agent.indexOf('win32') >= 0 || agent.indexOf('wow32') >= 0) {
25 return true;
26 }
27 if (agent.indexOf('win64') >= 0 || agent.indexOf('wow64') >= 0) {
28 return true;
29 }
30 return false;
31};
32
33export const isMac = () => {
34 const agent = navigator.userAgent;

Callers 4

handleWheelFunction · 0.90
RecordMenuFunction · 0.90
OrgChartFunction · 0.90
useScrollerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected