From 646f352a15fcfc3c3ef88e1ced8f0cd406cef8e0 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 16 Jul 2019 17:54:06 +0200 Subject: [PATCH] Send user agent in support messages --- www/support/ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/support/ui.js b/www/support/ui.js index 8a66e7886..34207b219 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -28,6 +28,10 @@ define([ data.id = id; data.time = +new Date(); + if (!ctx.isAdmin) { + data.sender.userAgent = window.navigator && window.navigator.userAgent; + } + // Send the message to the admin mailbox and to the user mailbox common.mailbox.sendTo(type, data, { channel: supportChannel,