forked from potsda.mn/mobilizon
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:
parent
09fce90c6a
commit
610570c795
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue