Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
9c1339c6a6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/utils/nativeExe.js

+ 5 - 1
src/utils/nativeExe.js

@@ -92,7 +92,11 @@ export function nodeCheckRemoteDesktop() {
     .nodeRequire("child_process")
     .execSync("tasklist")
     .toString();
-  if (appList && appList.match(/sunloginclient/gi).length > 0) {
+  if (
+    appList &&
+    appList.match(/sunloginclient/gi) &&
+    appList.match(/sunloginclient/gi).length > 0
+  ) {
     return true;
   } else {
     return false;