Skip to content

Commit

Permalink
fix: use window.setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed May 7, 2024
1 parent f0da5e3 commit a3725e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AppDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const focusMethod = (model: string): void => {
const mountedTimeout = (): void => {
if (!isIntersecting.value) return ;
if (!timeout.value) return;
timeoutInterval.value = setInterval(() => {
timeoutInterval.value = window.setInterval(() => {
timeout.value = timeout.value > 0 ? timeout.value -= 1: timeout.value;
if (timeout.value < 1) clearInterval(timeoutInterval.value);
}, 1000);
Expand Down
2 changes: 1 addition & 1 deletion src/components/FooterText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const buildInfo = (): void => {
if (!authed.value) return;
clearTimeout(buildTimeout.value);
showBuild.value = !showBuild.value;
buildTimeout.value = setTimeout(() => {
buildTimeout.value = window.setTimeout(() => {
showBuild.value = false;
}, 15000);
};
Expand Down

0 comments on commit a3725e8

Please sign in to comment.