37/ba/37ba808250e59821b5265a4900c56820e40e2b7ebb295fcac05375eca0daee5b
Git unified diff headerGit unified diff text format
SHA-25637ba808250e59821b5265a4900c56820e40e2b7ebb295fcac05375eca0daee5b
MaleculeH(F)Md
Evidence
⋯5 lines
6
7Original patch: Dorian Stoll <[email protected]>
8The application sends the kernel version as part of the User-Agent.
9However, the Deezer API seems to assume the number to follow semver,
10and can get confused when it doesn't. This then leads to some features
11like dark mode being reported as unavailable.
12
13e.g: 5.11.0-16-generic works, while 5.15.14-200.fc35.x86_64 doesn't.
14
15The solution is to ignore the actual version and send bogus data that
16is known to work.
17---
18 build/main.js | 15 ++++++++++++++-
19 build/preload.js | 15 +++++++++ …
21:29… ++++++++++-
22 4 files changed, 56 insertions(+), 4 deletions(-)
23
24diff --git a/build/main.js b/build/main.js
25index 307fc24..75182f1 100644
26--- a/build/main.js
27+++ b/build/main.js
⋯5 lines