Custom logger does not work at all with Webkit and Blink based browsers
Steps to reproduce
- Load any Funkwhale page on a Webkit or Blink-based browser
- Frontend scripts crash almost immediately and the page remains stuck on "Loading Funkwhale".
What happens?
Frontend does not work at all, on any URL
What is expected?
Frontend works as expected
Context
Funkwhale version(s) affected: 1.3.2
- Safari 17, Vivaldi 6.2 on macOS, Chrome 116 on Android
Console errors
Vivaldi
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ audio-context-constructor.js:11
(anonymous) @ audio-api.ts:7
useLogger.ts:49 Uncaught TypeError: Cannot read properties of undefined (reading 'startsWith')
at T$ (useLogger.ts:49:20)
at Object.warn (useLogger.ts:61:38)
at instance.ts:132:1
T$ @ useLogger.ts:49
(anonymous) @ useLogger.ts:61
(anonymous) @ instance.ts:132
Safari
[Error] TypeError: undefined is not an object (evaluating 'r.startsWith')
T$ (index-7553c8ab.js:28:82)
(anonymous function) (index-7553c8ab.js:28:279)
Module Code (index-7553c8ab.js:30:106957)
This behaviour is reproducible with any public 1.3.2 Funkwhale pod I could find and does not seem specific to my instance. 1.3.1 pods work as expected.
Frontend behaves mostly as expected on Firefox, but web player raises similar errors in useLogger.ts when trying to process various background events (switching to the next track, sending listening notifications, see #2214 (closed) )
Edited by Johann Queuniet