Fix visualizzazione info dispositivo

This commit is contained in:
FabioL 2024-04-02 11:11:59 +02:00
parent 450633b863
commit 7b9811bd69
1 changed files with 1 additions and 3 deletions

View File

@ -107,9 +107,7 @@ $(document).ready(function() {
parser.setUA(user_agent); parser.setUA(user_agent);
device = parser.getResult(); device = parser.getResult();
user_agent_cell.html('<strong>' + device.browser.name + '</strong> ' + device.browser.version + ' | <strong>' + device.os.name + '</strong> ' + device.os.version); user_agent_cell.html('<strong>' + (device.browser.name || '') + '</strong> ' + (device.browser.version || '') + ' | <strong>' + (device.os.name || '') + '</strong> ' + (device.os.version || ''));
console.log(device);
} }
}) })
}) })