From 33aae9cda9e402111335f6dba335968a734c6103 Mon Sep 17 00:00:00 2001 From: Darren Lau Wei Jie Date: Sat, 10 Aug 2024 10:20:15 +0800 Subject: [PATCH] Latest fix --- RefreshClass.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RefreshClass.ts b/RefreshClass.ts index 3eb2b9d..5a9821b 100644 --- a/RefreshClass.ts +++ b/RefreshClass.ts @@ -27,7 +27,7 @@ export class RefreshClass { sharedstuff.set("offlinerefresh", async () => { console.log("[" + manifest.name + "] Now offline, refreshing Spotify Token after online and resetting timer"); - sharedstuff.get("refreshname")(this.plugin) + sharedstuff.get("refreshname")(settings) }); window.addEventListener("offline", sharedstuff.get("offlinerefresh")); @@ -36,7 +36,7 @@ export class RefreshClass { sharedstuff.set("onlinerefresh", async () => { console.log("[" + manifest.name + "] Refreshing Spotify Token after online and resetting timer"); await refreshspot(settings, manifest); - sharedstuff.get("refreshname")(this.plugin) + sharedstuff.get("refreshname")(settings) clearInterval(sharedstuff.get("spotifyrefreshtimer")); setTimeout(async () => { let spotifyrefreshtimer = setInterval(async () => {