Add Discord RPC & fix artist in mediainfo (#40)

This commit is contained in:
Marie
2021-04-19 20:43:25 +02:00
committed by GitHub
parent 31670d0c2b
commit ab25bf16b2
9 changed files with 84 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ function refreshSettings() {
trayIcon.checked = store.get(settings.trayIcon);
mpris.checked = store.get(settings.mpris);
enableCustomHotkeys.checked = store.get(settings.enableCustomHotkeys);
enableDiscord.checked = store.get(settings.enableDiscord);
}
/**
@@ -81,6 +82,7 @@ window.addEventListener("DOMContentLoaded", () => {
trayIcon = get("trayIcon");
mpris = get("mprisCheckbox");
enableCustomHotkeys = get("enableCustomHotkeys");
enableDiscord = get("enableDiscord");
refreshSettings();
@@ -92,4 +94,5 @@ window.addEventListener("DOMContentLoaded", () => {
addInputListener(trayIcon, settings.trayIcon);
addInputListener(mpris, settings.mpris);
addInputListener(enableCustomHotkeys, settings.enableCustomHotkeys);
addInputListener(enableDiscord, settings.enableDiscord);
});

View File

@@ -141,6 +141,16 @@
<span class="slider round"></span>
</label>
</div>
<div class="option">
<h4>Discord RPC</h4>
<p>
Show what you're listening to on Discord
</p>
<label class="switch">
<input id="enableDiscord" type="checkbox">
<span class="slider round"></span>
</label>
</div>
</div>
</section>
<section id="about" class="tab-panel">