fix a bug in statistics dialog

This commit is contained in:
rolux 2012-10-27 19:30:53 +02:00
parent 31533bcb62
commit 0ee64f9186

View file

@ -172,7 +172,7 @@ pandora.ui.statisticsDialog = function() {
['system', 'browser'].forEach(function(key) { ['system', 'browser'].forEach(function(key) {
var version = item[key]; var version = item[key];
if (version) { if (version) {
name[key] = getName(version); name[key] = getName(key, version);
if (name[key]) { if (name[key]) {
data[mode][key][name[key]] = (data[mode][key][name[key]] || 0) + 1; data[mode][key][name[key]] = (data[mode][key][name[key]] || 0) + 1;
key = key + 'version'; key = key + 'version';