Prefix setInterval with window

Use the patch from https://github.com/NixOS/nixpkgs/pull/119132

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-28 10:40:20 +02:00
parent 09fce90c6a
commit 610570c795
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -123,7 +123,7 @@ const interval = ref<number>(0);
const notifier = inject<Notifier>("notifier");
interval.value = setInterval(async () => {
interval.value = window.setInterval(async () => {
const accessToken = localStorage.getItem(AUTH_ACCESS_TOKEN);
if (accessToken) {
const token = jwt_decode<JwtPayload>(accessToken);