mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-04-28 07:28:54 +02:00
chore: added debug possibilities
This commit is contained in:
parent
90d81d2178
commit
4330994b32
26
.vscode/launch.json
vendored
26
.vscode/launch.json
vendored
@ -2,15 +2,35 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
// we can use this to debug the main process
|
||||
"name": "Electron: Main",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/node_modules/electron/dist/electron",
|
||||
"args": ["."],
|
||||
"runtimeExecutable": "${workspaceFolder}/node_modules/electron/dist/electron",
|
||||
"args": [
|
||||
"${workspaceFolder}/ts-dist/main.js",
|
||||
"--no-sandbox",
|
||||
"--disable-gpu",
|
||||
"--disable-software-rasterizer",
|
||||
"--in-process-gpu",
|
||||
"--inspect=0.0.0.0:5858",
|
||||
"--remote-debugging-port=8315"
|
||||
],
|
||||
"protocol": "inspector",
|
||||
"env": {
|
||||
"ELECTRON_DISABLE_SECURITY_WARNINGS": "false"
|
||||
}
|
||||
},
|
||||
"outputCapture": "std"
|
||||
},
|
||||
// first run, then connect this to make sure we debug the UI
|
||||
{
|
||||
"name": "Electron: Renderer",
|
||||
"type": "chrome",
|
||||
"request": "attach",
|
||||
"port": 8315,
|
||||
"webRoot": "${workspaceFolder}",
|
||||
"sourceMaps": true,
|
||||
"skipFiles": ["<node_internals>/**"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user