Skip to content

Commit

Permalink
Latest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeydarrenlau authored Aug 10, 2024
1 parent e512a9e commit 33aae9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RefreshClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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 () => {
Expand Down

0 comments on commit 33aae9c

Please sign in to comment.