From 2da6ecaddcc8cc880860b6026431ee63b2c152b2 Mon Sep 17 00:00:00 2001 From: cryptofyre Date: Thu, 27 Oct 2022 04:38:37 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/plugins/discordrpc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/plugins/discordrpc.ts b/src/main/plugins/discordrpc.ts index 268be5ea..98faba92 100644 --- a/src/main/plugins/discordrpc.ts +++ b/src/main/plugins/discordrpc.ts @@ -59,7 +59,7 @@ export default class DiscordRPC { const self = this; ipcMain.on("discordrpc:updateImage", async (_event, imageurl) => { if (!this._utils.getStoreValue("general.privateEnabled")) { - console.log("[DEBUG] "+imageurl) + console.log("[DEBUG] " + imageurl); fetch("https://api.cider.sh/v1/images", { method: "POST", headers: { @@ -69,7 +69,7 @@ export default class DiscordRPC { }) .then((res) => res.json()) .then(function (json) { - self._attributes["artwork"]["url"] = "https://images.weserv.nl/?url="+json.imageUrl+"&w=600&h=600&output=jpg"; // Image Caching Proxy to prevent Discord from going haha no. + self._attributes["artwork"]["url"] = "https://images.weserv.nl/?url=" + json.imageUrl + "&w=600&h=600&output=jpg"; // Image Caching Proxy to prevent Discord from going haha no. self.setActivity(self._attributes); }); }