From b62f8c49e48fe0eca46ee58105b4abbe9a47eaad Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 10 Jun 2021 09:20:37 +0200 Subject: [PATCH] Fixed: Framework counter in options page --- pages/options/options-info.js | 5 +++-- pages/updates/updates.html | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/options/options-info.js b/pages/options/options-info.js index 3287e1ba..89ddeed8 100644 --- a/pages/options/options-info.js +++ b/pages/options/options-info.js @@ -27,9 +27,10 @@ var optionsInfo = {}; */ optionsInfo._renderCdnFrameworkSection = function () { - let unsupportedFrameworks, btnCDNs, btnFrameworks; + let unsupportedFrameworks, summarizedFrameworks, btnCDNs, btnFrameworks; unsupportedFrameworks = 0; + summarizedFrameworks = 12; optionsInfo._listOfFrameworks = {}; btnCDNs = document.getElementById('cdn'); @@ -58,7 +59,7 @@ optionsInfo._renderCdnFrameworkSection = function () { // Reduce CDNs by 3, because loli.net includes = cdn.css.net, cdnjs.loli.net, ajax.loli.net, fonts.loli.net btnCDNs.value += Object.keys(mappings.cdn).length - 3; - btnFrameworks.value += Object.keys(optionsInfo._listOfFrameworks).length - unsupportedFrameworks; + btnFrameworks.value += Object.keys(optionsInfo._listOfFrameworks).length - unsupportedFrameworks - summarizedFrameworks; }; optionsInfo._renderLinkSection = function () { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 4551a228..c62c9f28 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -45,6 +45,7 @@
  • Updated: webrtc-adapter v7.4.0 -> v7.7.1 (#506)
  • Updated: ember.js v3.27.3 -> v3.27.4 (#507)
  • Updated: webrtc-adapter v8.0.0 (#451)
  • +
  • Fixed: Framework counter in options page