diff --git a/src/js/services/platformInfo.js b/src/js/services/platformInfo.js index 8396afa07..65932eb3c 100644 --- a/src/js/services/platformInfo.js +++ b/src/js/services/platformInfo.js @@ -66,5 +66,11 @@ angular.module('copayApp.services').factory('platformInfo', function($window) { ret.versionIntelTEE = getVersionIntelTee(); ret.supportsIntelTEE = ret.versionIntelTEE.length > 0; + ret.isMac = typeof process !== 'undefined'?process.platform === 'darwin':false; + ret.isWindows = typeof process !== 'undefined'?process.platform === 'win32':false; + ret.isLinux = typeof process !== 'undefined'?process.platform === 'linux':false; + + ret.isDesktopApp = ret.isNW && (ret.isMac || ret.isWindows || ret.isLinux); + return ret; });