Merge pull request #336 from bluelovers/patch-4

chore: use async avoid block other onUiLoaded cb
This commit is contained in:
Physton
2024-06-04 23:41:45 +08:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ import CommonMixin from "@/mixins/commonMixin"
import common from "@/utils/common"
import tippy from "tippy.js"
onUiLoaded(() => {
onUiLoaded(async () => {
const div = document.createElement('div')
div.id = 'physton-prompt-all-in-one'
common.gradioApp().appendChild(div)