Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
fix: set correct loading state in iframeView (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
OneGIl authored Aug 30, 2023
1 parent 4e47f09 commit 46d6cf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/client/components/IframeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ onMounted(() => {
if (iframeCacheMap.get(key.value)) {
iframeEl.value = iframeCacheMap.get(key.value)!
iframeEl.value.style.visibility = 'visible'
iframeLoaded.value = true
}
else {
iframeEl.value = document.createElement('iframe')
Expand Down Expand Up @@ -45,10 +46,8 @@ watchEffect(updateIframeBox)
watchEffect(syncColorMode)
onUnmounted(() => {
if (iframeEl.value) {
if (iframeEl.value)
iframeEl.value.style.visibility = 'hidden'
iframeLoaded.value = false
}
})
function syncColorMode() {
Expand Down

0 comments on commit 46d6cf9

Please sign in to comment.