From 973769852c862691130719d7056551c2de6276eb Mon Sep 17 00:00:00 2001 From: coredev-uk Date: Mon, 26 Sep 2022 21:41:35 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/base/app.ts | 2 +- src/main/plugins/lastfm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/base/app.ts b/src/main/base/app.ts index 7e2e0678..16976b90 100644 --- a/src/main/base/app.ts +++ b/src/main/base/app.ts @@ -93,7 +93,7 @@ export class AppEvents { if (process.platform === "linux") { app.commandLine.appendSwitch("disable-features", "MediaSessionService"); - + if (os.version().indexOf("SteamOS")) { app.commandLine.appendSwitch("enable-features", "UseOzonePlatform"); app.commandLine.appendSwitch("ozone-platform", "x11"); diff --git a/src/main/plugins/lastfm.ts b/src/main/plugins/lastfm.ts index b1e748fd..dccf6f5e 100644 --- a/src/main/plugins/lastfm.ts +++ b/src/main/plugins/lastfm.ts @@ -209,7 +209,7 @@ export default class lastfm { }); return; } - + if (!this._authenticated || !attributes || this._utils.getStoreValue("connectivity.lastfm.filter_types")[attributes.playParams.kind] || this._utils.getStoreValue("connectivity.lastfm.filter_types")[attributes.kind] || (this._utils.getStoreValue("connectivity.lastfm.filter_loop") && this._nowPlayingCache.track === attributes.lfmTrack.name)) return; console.log(this._utils.getStoreValue("connectivity.lastfm.filter_types"));