1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00
This commit is contained in:
jalfje 2025-03-28 03:08:25 +00:00 committed by GitHub
commit 18d91222e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -194,7 +194,7 @@ export class ImageStim extends util.mix(VisualStim).with(ColorMixin)
}
const existingImage = this.getImage();
const hasChanged = existingImage ? existingImage.src !== image.src : true;
const hasChanged = existingImage && image ? existingImage.src !== image.src : existingImage || image;
this._setAttribute("image", image, log);