Send user agent in support messages

This commit is contained in:
yflory 2019-07-16 17:54:06 +02:00
parent 9b45f0dd79
commit 646f352a15
1 changed files with 4 additions and 0 deletions

View File

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