@@ -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;