Fixed: Framework counter in options page
This commit is contained in:
parent
73470609c7
commit
b62f8c49e4
|
@ -27,9 +27,10 @@ var optionsInfo = {};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
optionsInfo._renderCdnFrameworkSection = function () {
|
optionsInfo._renderCdnFrameworkSection = function () {
|
||||||
let unsupportedFrameworks, btnCDNs, btnFrameworks;
|
let unsupportedFrameworks, summarizedFrameworks, btnCDNs, btnFrameworks;
|
||||||
|
|
||||||
unsupportedFrameworks = 0;
|
unsupportedFrameworks = 0;
|
||||||
|
summarizedFrameworks = 12;
|
||||||
optionsInfo._listOfFrameworks = {};
|
optionsInfo._listOfFrameworks = {};
|
||||||
|
|
||||||
btnCDNs = document.getElementById('cdn');
|
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
|
// 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;
|
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 () {
|
optionsInfo._renderLinkSection = function () {
|
||||||
|
|
|
@ -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: 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: 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>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>
|
</ul>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
|
|
Loading…
Reference in New Issue