mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-08-03 11:31:20 +02:00
chore: added debug possibilities
This commit is contained in:
@@ -103,7 +103,7 @@ export class DomTidalController implements TidalController<DomControllerOptions>
|
||||
globalThis.location.href.includes("/playlist/") ||
|
||||
globalThis.location.href.includes("/mix/")
|
||||
) {
|
||||
if (this.getCurrentlyPlayingStatus() === MediaStatus.playing) {
|
||||
if (this.currentlyPlaying === MediaStatus.playing) {
|
||||
// find the currently playing element from the list (which might be in an album icon), traverse back up to the mediaItem (row) and select the album cell.
|
||||
// document.querySelector("[class^='isPlayingIcon'], [data-test-is-playing='true']").closest('[data-type="mediaItem"]').querySelector('[class^="album"]').textContent
|
||||
const row = window.document.querySelector(this.currentlyPlaying).closest(this.mediaItem);
|
||||
|
@@ -32,7 +32,8 @@ const PROTOCOL_PREFIX = "tidal";
|
||||
const windowPreferences = {
|
||||
sandbox: false,
|
||||
plugins: true,
|
||||
devTools: true, // I like tinkering, others might too
|
||||
devTools: true, // Ensure devTools is enabled for debugging
|
||||
contextIsolation: false, // Disable context isolation for debugging
|
||||
};
|
||||
|
||||
setDefaultFlags(app);
|
||||
|
Reference in New Issue
Block a user