style fixes, bug fixes

This commit is contained in:
Dennis Eichhorn 2023-05-28 01:13:23 +00:00
parent 0adf8dbf94
commit 0e4381bc34

View File

@ -206,7 +206,10 @@ export class GeneralUI
const length = e.length;
for (let i = 0; i < length; ++i) {
e[i].src = UriFactory.build(e[i].src);
if (e[i].getAttribute('data-src') !== null) {
// prevent double loading
e[i].src = UriFactory.build(e[i].getAttribute('data-src'));
}
e[i].addEventListener('load', function () {
const spinner = this.parentElement.getElementsByClassName('ispinner');