diff --git a/README.md b/README.md index 867c69f..e01d0b3 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,5 @@ * Статиска школ ## Скачать +* [google store](https://chrome.google.com/webstore/detail/vk-charts/mbbonpdbhkfpcddfojmigibngoiamloo) * [github](https://github.com/Phil9l/vk-friends-statistics/releases) diff --git a/js/vkinject.js b/js/vkinject.js index 8537740..92e7b93 100644 --- a/js/vkinject.js +++ b/js/vkinject.js @@ -141,7 +141,7 @@ DropDown.prototype = { var obj = this; obj.dd.on('click', function(event){ $(this).toggleClass('active'); - if ($(event.target).is('span')){ + if ($(event.target).is('span') && typeof $(event.target).attr('statistic-type') !== 'undefined') { $('.friend-statistic').hide(); $('.friend-statistic[statistic-type="' + $(event.target).attr('statistic-type') + '"]').show(); $('.friends-chart-current-choice').text($(event.target).text()); diff --git a/manifest.json b/manifest.json index dc81347..b86e812 100644 --- a/manifest.json +++ b/manifest.json @@ -1,15 +1,15 @@ { "manifest_version": 2, "name": "VK Charts", - "description": "Allows to see statistics based on user vk profile.", - "version": "1.0.4", + "description": "Показывает статистику на странице профиля вконтакте.", + "version": "1.0.5", "permissions": [ "tabs", "storage", - "http://*.vk.com/*", "http://vk.com/*", - "https://*.vk.com/*", - "https://vk.com/*" + "https://vk.com/*", + "http://*.vk.com/*", + "https://*.vk.com/*" ], "icons": { "48": "images/icons/icon48.png",