From 8ef7067232b4f86c72e1da7db518227f6c105105 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Thu, 13 Oct 2022 13:17:00 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/renderer/main/vueapp.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index ea39d0ef..9e9f9955 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -3268,8 +3268,10 @@ const app = new Vue({ } else { // only load MXM lyrics if AM lyrics failed to load if (app.cfg.lyrics.enable_mxm) { - this.loadMXM();} else { - this.loadAMLyrics();} + this.loadMXM(); + } else { + this.loadAMLyrics(); + } } }, async loadAMLyrics() { @@ -3282,15 +3284,17 @@ const app = new Vue({ this.parseTTML(); } catch (_) { if (app.cfg.lyrics.enable_mxm) { - this.loadQQLyrics() + this.loadQQLyrics(); } else { - this.loadMXM();} + this.loadMXM(); + } } } else { if (app.cfg.lyrics.enable_mxm) { - this.loadQQLyrics() // since mxm is already prioritized, we can just load qq lyrics if am fails + this.loadQQLyrics(); // since mxm is already prioritized, we can just load qq lyrics if am fails } else { - this.loadMXM();} + this.loadMXM(); + } } }, addToLibrary(id) { @@ -3423,7 +3427,7 @@ const app = new Vue({ } if (lrcfile === "") { - app.loadAMLyrics() + app.loadAMLyrics(); } else { if (richsync == [] || richsync.length == 0) { console.log("musixmatch worki"); @@ -3475,12 +3479,12 @@ const app = new Vue({ } } catch (e) { console.log(e); - app.loadAMLyrics() + app.loadAMLyrics(); } } } catch (e) { console.error(e); - app.loadAMLyrics() + app.loadAMLyrics(); } }; req.onerror = function () {