Fixed broken remote desktop when notification is enabled.

This commit is contained in:
Ylian Saint-Hilaire 2022-01-16 21:30:38 -08:00
parent 5493e95279
commit 1933ff9680
2 changed files with 996 additions and 992 deletions

View File

@ -2479,7 +2479,7 @@ function onTunnelData(data) {
if (this.httprequest.consent && (this.httprequest.consent & 1)) {
// User Notifications is required
MeshServerLogEx(35, null, "Started remote desktop with toast notification (" + this.httprequest.remoteaddr + ")", this.httprequest);
var notifyMessage = currentTranslation['desktopNotify'].replace('{0}', this.ws.httprequest.realname);
var notifyMessage = currentTranslation['desktopNotify'].replace('{0}', this.httprequest.realname);
var notifyTitle = "MeshCentral";
if (this.httprequest.soptions != null) {
if (this.httprequest.soptions.notifyTitle != null) { notifyTitle = this.httprequest.soptions.notifyTitle; }

File diff suppressed because it is too large Load Diff