From 565074896148f762acffff47852c722f38b8c065 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 6 Apr 2017 17:08:08 -0700 Subject: [PATCH] Fix pre-populated device name --- js/views/install_view.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/views/install_view.js b/js/views/install_view.js index 125209656..b8d7e2a92 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -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'; } }