refactor(client): specify global scope
This commit is contained in:
@@ -62,9 +62,9 @@ watch(() => widgetProps.url, tick);
|
||||
|
||||
onMounted(() => {
|
||||
tick();
|
||||
const intervalId = setInterval(tick, 60000);
|
||||
const intervalId = window.setInterval(tick, 60000);
|
||||
onUnmounted(() => {
|
||||
clearInterval(intervalId);
|
||||
window.clearInterval(intervalId);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user