Fix pre-populated device name
This commit is contained in:
parent
32be90c728
commit
5650748961
1 changed files with 3 additions and 4 deletions
|
@ -35,13 +35,12 @@
|
|||
|
||||
var deviceName = textsecure.storage.user.getDeviceName();
|
||||
if (!deviceName) {
|
||||
deviceName = 'Chrome';
|
||||
if (navigator.userAgent.match('Mac OS')) {
|
||||
deviceName += ' on Mac';
|
||||
deviceName = 'Mac';
|
||||
} else if (navigator.userAgent.match('Linux')) {
|
||||
deviceName += ' on Linux';
|
||||
deviceName = 'Linux';
|
||||
} else if (navigator.userAgent.match('Windows')) {
|
||||
deviceName += ' on Windows';
|
||||
deviceName = 'Windows';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue