Fixed: Undefined version number in popup

This commit is contained in:
nobody 2020-08-04 16:55:27 +02:00
parent 612a46ec30
commit 8f73ed4bf8
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 4 additions and 0 deletions

View File

@ -388,6 +388,9 @@ popup._createInjectionElement = function (injection) {
let versionNode = ''; let versionNode = '';
if (injection.versionRequested === injection.versionDelivered) { if (injection.versionRequested === injection.versionDelivered) {
if (injection.versionRequested === undefined || injection.versionDelivered === undefined) {
versionNode = '';
} else if (injection.versionRequested === injection.versionDelivered) {
versionNode = ` v${injection.versionRequested}`; versionNode = ` v${injection.versionRequested}`;
} else if (injection.versionRequested === 'beta') { } else if (injection.versionRequested === 'beta') {
versionNode = ` ${injection.versionRequested}`; versionNode = ` ${injection.versionRequested}`;

View File

@ -32,6 +32,7 @@
<li>Added: jScrollPane v2.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/73">#73</a>)</li> <li>Added: jScrollPane v2.2.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/73">#73</a>)</li>
<li>Added: Tooltipster v3.3.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/73">#73</a>)</li> <li>Added: Tooltipster v3.3.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/73">#73</a>)</li>
<li>Added: Materialize (JS & CSS) v0.97.8</li> <li>Added: Materialize (JS & CSS) v0.97.8</li>
<li>Fixed: Undefined version number in the popup</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">