platform.js 692 B

1234567891011121314
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. Object.defineProperty(exports, "__esModule", { value: true });
  7. exports.isWindows = void 0;
  8. if (typeof process === 'object') {
  9. exports.isWindows = process.platform === 'win32';
  10. }
  11. else if (typeof navigator === 'object') {
  12. let userAgent = navigator.userAgent;
  13. exports.isWindows = userAgent.indexOf('Windows') >= 0;
  14. }