diff --git a/log.php b/log.php index aa74c234c..cfc4b7492 100755 --- a/log.php +++ b/log.php @@ -107,9 +107,7 @@ $(document).ready(function() { parser.setUA(user_agent); device = parser.getResult(); - user_agent_cell.html('' + device.browser.name + ' ' + device.browser.version + ' | ' + device.os.name + ' ' + device.os.version); - - console.log(device); + user_agent_cell.html('' + (device.browser.name || '') + ' ' + (device.browser.version || '') + ' | ' + (device.os.name || '') + ' ' + (device.os.version || '')); } }) })