Skip to content

Commit

Permalink
App.vue: getData() need not be async. Provide the iframe all the time…
Browse files Browse the repository at this point in the history
… in order not to run into undefined vue references.
  • Loading branch information
rotdrop committed Mar 11, 2024
1 parent 22027c3 commit 2a4077b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<template>
<div :class="['app-container', state]">
<div ref="loaderContainer" class="loader-container" />
<iframe v-if="state !== 'error'"
<iframe v-show="state !== 'error'"
:id="frameId"
ref="roundCubeFrame"
:src="externalLocation + '?_task=mail'"
Expand Down Expand Up @@ -105,7 +105,7 @@ helps. Otherwise contact your system administrator.`)
info() {
console.info(...arguments)
},
async getData() {
getData() {
const initialState = getInitialState()
for (const [key, value] of Object.entries(initialState)) {
vueSet(this, key, value)
Expand Down

0 comments on commit 2a4077b

Please sign in to comment.