diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-16 10:14:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-16 10:14:14 +0900 |
| commit | 8322c908340fa720d4f1afc781ef34e9d16ae6b0 (patch) | |
| tree | 624cc9d2296870cdff8fab7dcb47d05638fc9ac7 /packages/client/src/components/form/input.vue | |
| parent | clean up (diff) | |
| download | misskey-8322c908340fa720d4f1afc781ef34e9d16ae6b0.tar.gz misskey-8322c908340fa720d4f1afc781ef34e9d16ae6b0.tar.bz2 misskey-8322c908340fa720d4f1afc781ef34e9d16ae6b0.zip | |
refactor(client): specify global scope
Diffstat (limited to 'packages/client/src/components/form/input.vue')
| -rw-r--r-- | packages/client/src/components/form/input.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/components/form/input.vue b/packages/client/src/components/form/input.vue index 3533f4f27b..7165671af3 100644 --- a/packages/client/src/components/form/input.vue +++ b/packages/client/src/components/form/input.vue @@ -167,7 +167,7 @@ export default defineComponent({ // このコンポーネントが作成された時、非表示状態である場合がある // 非表示状態だと要素の幅などは0になってしまうので、定期的に計算する - const clock = setInterval(() => { + const clock = window.setInterval(() => { if (prefixEl.value) { if (prefixEl.value.offsetWidth) { inputEl.value.style.paddingLeft = prefixEl.value.offsetWidth + 'px'; @@ -181,7 +181,7 @@ export default defineComponent({ }, 100); onUnmounted(() => { - clearInterval(clock); + window.clearInterval(clock); }); }); }); |