[F] Fix "Type 'Timer' is not assignable to type 'number'."

This commit is contained in:
Hykilpikonna
2022-12-20 23:45:07 -05:00
parent 435787dfaf
commit be5e8f436a
+2 -2
View File
@@ -78,13 +78,13 @@ export default class App extends Vue
window.addEventListener('resize', this.calculateBookmarkCss, true);
// Update every second
this.bookmarkUpdateIntervalId = setInterval(this.calculateBookmarkCss, 1000)
this.bookmarkUpdateIntervalId = window.setInterval(this.calculateBookmarkCss, 1000)
}
unmounted(): void
{
window.removeEventListener('resize', this.calculateBookmarkCss)
clearInterval(this.bookmarkUpdateIntervalId)
window.clearInterval(this.bookmarkUpdateIntervalId)
}
calculateBookmarkCss(): void