UNPKG

@difizen/mana-common

Version:

23 lines (20 loc) 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isWindows = void 0; function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // !!!!! // SEE https://github.com/microsoft/vscode/blob/master/src/vs/base/common/platform.ts // !!!!! var isWindows; if ((typeof process === "undefined" ? "undefined" : _typeof(process)) === 'object') { exports.isWindows = isWindows = process.platform === 'win32'; } else if ((typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object') { var userAgent = navigator.userAgent; exports.isWindows = isWindows = userAgent.indexOf('Windows') >= 0; }