Fix visualizzazione info dispositivo
This commit is contained in:
parent
450633b863
commit
7b9811bd69
4
log.php
4
log.php
|
@ -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);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue