diff --git a/src/utils/os.ts b/src/utils/os.ts deleted file mode 100644 index 6c9b375e..00000000 --- a/src/utils/os.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as os from 'os'; - -export const getOSInfo = () => { - // If available, capture information about the OS - if (os && os.release && os.platform && os.arch) { - const platform = os.platform(); - const platformVersion = os.release(); - const arch = os.arch(); - return `${platform} ${platformVersion}, ${arch}`; - } -}; diff --git a/src/utils/user-agent.ts b/src/utils/user-agent.ts index 0417b052..0c7171eb 100644 --- a/src/utils/user-agent.ts +++ b/src/utils/user-agent.ts @@ -1,4 +1,3 @@ -import { getOSInfo } from './os'; import { isEdge } from './environment'; import * as packageInfo from '../version.json'; @@ -11,12 +10,7 @@ export const buildUserAgent = (isLegacy: boolean) => { 'lang=typescript', ]; - if (!isEdge()) { - const osInfo = getOSInfo(); - if (osInfo) { - userAgentParts.push(osInfo); - } - } else { + if (isEdge()) { userAgentParts.push('Edge Runtime'); }