Fixed: Framework counter in options page

This commit is contained in:
nobody 2021-06-10 09:20:37 +02:00
parent 73470609c7
commit b62f8c49e4
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 4 additions and 2 deletions

View File

@ -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 () {

View File

@ -45,6 +45,7 @@
<li>Updated: webrtc-adapter v7.4.0 -> v7.7.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/506">#506</a>)</li>
<li>Updated: ember.js v3.27.3 -> v3.27.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/507">#507</a>)</li>
<li>Updated: webrtc-adapter v8.0.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/451">#451</a>)</li>
<li>Fixed: Framework counter in options page</li>
</ul>
<div id="generator-section">
<div class="topic-label">