UNPKG

@difizen/mana-common

Version:

17 lines (15 loc) 1.11 kB
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 // !!!!! export var isWindows; if ((typeof process === "undefined" ? "undefined" : _typeof(process)) === 'object') { isWindows = process.platform === 'win32'; } else if ((typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object') { var userAgent = navigator.userAgent; isWindows = userAgent.indexOf('Windows') >= 0; }