From ba11903615f7926898e94fad24122d4ea3840252 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Tue, 1 Feb 2022 20:29:28 -0800 Subject: [PATCH] Fixed uncaught exception that prevented notification from working on Files Tab --- agents/meshcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index db500a46..52e0db72 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -2662,7 +2662,7 @@ function onTunnelData(data) { if (this.httprequest.consent && (this.httprequest.consent & 4)) { // User Notifications is required MeshServerLogEx(42, null, "Started remote files with toast notification (" + this.httprequest.remoteaddr + ")", this.httprequest); - var notifyMessage = currentTranslation['fileNotify'].replace('{0}', this.ws.httprequest.realname); + var notifyMessage = currentTranslation['fileNotify'].replace('{0}', this.httprequest.realname); var notifyTitle = "MeshCentral"; if (this.httprequest.soptions != null) { if (this.httprequest.soptions.notifyTitle != null) { notifyTitle = this.httprequest.soptions.notifyTitle; }