linx-simulator2/node_modules/mumble-client/lib/utils.js

22 lines
385 B
JavaScript
Raw Normal View History

2019-09-18 08:11:16 +00:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getOSName = getOSName;
exports.getOSVersion = getOSVersion;
function getOSName() {
if (process.browser) {
return 'Browser';
} else {
return 'Node.js';
}
}
function getOSVersion() {
if (process.browser) {
return navigator.userAgent;
} else {
return process.version;
}
}