summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/pages/index.home.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue
index 1005d4add2..f3bbd2d91b 100644
--- a/src/client/pages/index.home.vue
+++ b/src/client/pages/index.home.vue
@@ -98,6 +98,10 @@ export default Vue.extend({
}
},
+ mounted() {
+ this.width = this.$el.offsetWidth
+ },
+
methods: {
before() {
Progress.start();
@@ -108,7 +112,7 @@ export default Vue.extend({
},
queueUpdated(q) {
- this.width = this.$el.offsetWidth;
+ if (this.$el.offsetWidth !== 0) this.width = this.$el.offsetWidth;
this.queue = q;
},