fix(web) fix generated config syntax

Arrow functions don't work on the JS interpreter which evaluates
config.js on Android.

Fixes: https://github.com/jitsi/docker-jitsi-meet/issues/2031
This commit is contained in:
Saúl Ibarra Corretgé
2025-02-28 17:50:10 +01:00
parent c05cdead34
commit 754c0b598f

View File

@@ -137,7 +137,7 @@ config.p2p = {
};
{{ if .Env.P2P_STUN_SERVERS -}}
config.p2p.stunServers = '{{ .Env.P2P_STUN_SERVERS }}'.split(',').map(url => ({ urls: 'stun:' + url }));
config.p2p.stunServers = '{{ .Env.P2P_STUN_SERVERS }}'.split(',').map(function (url) { return { urls: 'stun:' + url }; } );
{{ end -}}