mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-05-15 15:22:58 +02:00
Compare commits
1 Commits
ce894868e2
...
a9669eec2a
Author | SHA1 | Date | |
---|---|---|---|
|
a9669eec2a |
@ -8,7 +8,7 @@ const ListenBrainzStore = new Store({name: "listenbrainz"});
|
|||||||
|
|
||||||
export class ListenBrainz {
|
export class ListenBrainz {
|
||||||
/**
|
/**
|
||||||
* Call the ListenBrainz API and create playing now payload and scrobble old song
|
* Call the ListenBrainz API and create playing now payload
|
||||||
* @param title
|
* @param title
|
||||||
* @param artists
|
* @param artists
|
||||||
* @param status
|
* @param status
|
||||||
|
@ -144,10 +144,6 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
} else {
|
} else {
|
||||||
settingsStore.set(key, source.value);
|
settingsStore.set(key, source.value);
|
||||||
}
|
}
|
||||||
// Live update the view for ListenBrainz input, hide if disabled/show if enabled
|
|
||||||
if (source.value === "on" && source.id === "enableListenBrainz") {
|
|
||||||
source.checked ? document.getElementById("listenbrainz__options").removeAttribute("hidden") : document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
|
||||||
}
|
|
||||||
ipcRenderer.send(globalEvents.storeChanged);
|
ipcRenderer.send(globalEvents.storeChanged);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -199,7 +195,6 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
ListenBrainzToken = get("ListenBrainzToken");
|
ListenBrainzToken = get("ListenBrainzToken");
|
||||||
|
|
||||||
refreshSettings();
|
refreshSettings();
|
||||||
enableListenBrainz.checked ? document.getElementById("listenbrainz__options").removeAttribute("hidden") : document.getElementById("listenbrainz__options").setAttribute("hidden", "true");
|
|
||||||
|
|
||||||
addInputListener(adBlock, settings.adBlock);
|
addInputListener(adBlock, settings.adBlock);
|
||||||
addInputListener(api, settings.api);
|
addInputListener(api, settings.api);
|
||||||
|
@ -221,7 +221,6 @@
|
|||||||
<span class="switch__slider"></span>
|
<span class="switch__slider"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="listenbrainz__options" hidden="true">
|
|
||||||
<div class="group__option">
|
<div class="group__option">
|
||||||
<div class="group__description">
|
<div class="group__description">
|
||||||
<h4>ListenBrainz API Url</h4>
|
<h4>ListenBrainz API Url</h4>
|
||||||
@ -237,7 +236,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<textarea id="ListenBrainzToken" class="textarea" cols="1" rows="1" spellcheck="false"></textarea>
|
<textarea id="ListenBrainzToken" class="textarea" cols="1" rows="1" spellcheck="false"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="advanced-section" class="tabs__section">
|
<section id="advanced-section" class="tabs__section">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user