Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Junek <michal@junek.pw>2022-02-07 16:43:50 +0300
committerMichal Junek <michal@junek.pw>2022-02-07 16:49:22 +0300
commit7b420e780ea9ffb89f980ca1652aefa3cf0b861e (patch)
tree2c9d60cb7c2706f7f0aeb4b724ecd2457cff07dc /src/nodes/ImageView.vue
parent76a1f000a4f9c1b621c292cf8fc36125ce613c0a (diff)
[master] Prevents race condition when loading images
Signed-off-by: Michal Junek <michal@junek.pw>
Diffstat (limited to 'src/nodes/ImageView.vue')
-rw-r--r--src/nodes/ImageView.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue
index f8bd2ad6c..1142178c2 100644
--- a/src/nodes/ImageView.vue
+++ b/src/nodes/ImageView.vue
@@ -275,7 +275,6 @@ export default {
return
}
const img = new Image()
- img.src = this.imageUrl
img.onload = () => {
this.imageLoaded = true
}
@@ -284,6 +283,7 @@ export default {
this.imageLoaded = false
this.loaded = true
}
+ img.src = this.imageUrl
},
methods: {
updateAlt() {