don't clean msd image selector when offline

This commit is contained in:
Maxim Devaev 2023-03-20 18:22:09 +02:00
parent b5b6733b2a
commit 4f70060d5e

View File

@ -320,14 +320,11 @@ export function Msd() {
var __applyStateImageSelector = function() { var __applyStateImageSelector = function() {
let s = __state; let s = __state;
if (!(s && s.online) || s.storage.uploading || s.storage.downloading) {
return;
}
let el = $("msd-image-selector"); let el = $("msd-image-selector");
if (!(s && s.online)) {
el.options.length = 1; // Cleanup
return;
}
if (s.storage.uploading || s.storage.downloading) {
return;
}
el.options.length = 1; el.options.length = 1;
let selected = ""; let selected = "";