Skip to content

Commit 6a8e77a

Browse files
committed
fix fcitxReady race condition in test
1 parent 7a8fb24 commit 6a8e77a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

preview/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
</div>
1313
<script type="module">
1414
import { fcitxReady } from "./Fcitx5.js"
15-
window.fcitxReady = fcitxReady
16-
await fcitxReady
17-
window.fcitx.enable()
15+
window.fcitxReady = fcitxReady.then(() => window.fcitx.enable())
16+
await window.fcitxReady
1817
</script>
1918
</body>
2019
</html>

0 commit comments

Comments
 (0)