From edabaa21a25e7bbf2a1d2c7c4e71fa29decb02d1 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Wed, 1 Nov 2023 22:36:16 +0300 Subject: [PATCH] [win] for bug 64942 --- apps/common/main/lib/controller/Desktop.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 943e97bc15..90b5cfee92 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -615,6 +615,9 @@ define([ isFeatureAvailable: function (feature) { return !!native && !!native[feature]; }, + isWinXp: function () { + return nativevars && nativevars.os === 'winxp'; + }, call: function (name) { if ( native[name] ) { let args = [].slice.call(arguments, 1); @@ -674,7 +677,7 @@ define([ return false; }, - }; + }; }; !Common.Controllers && (Common.Controllers = {});