Get rid of the HMxcImage undefined py warnings

This commit is contained in:
miruka 2020-03-08 04:27:51 -04:00
parent 606e8a25df
commit ffc8a13db6

View File

@ -23,6 +23,8 @@ HImage {
function update() {
if (! py) return // component was destroyed
let w = sourceSize.width || width
let h = sourceSize.height || height
@ -31,8 +33,6 @@ HImage {
return
}
if (! image) return // if it was destroyed
if (! isMxc) {
if (source !== mxc) source = mxc
show = image.visible