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