chore: auto-merge develop → main

Triggered by: 9c285b4 fix(tts): guard getVoices() against browser extension crash (Brave anti-fingerprinting, issue #61)
This commit is contained in:
github-actions[bot]
2026-05-16 12:48:12 +00:00
+4 -1
View File
@@ -12494,7 +12494,10 @@ function _initBrowserTtsVoices(selectedVoice) {
sel.innerHTML = '<option value="">— Caricamento voci… —</option>';
const populate = () => {
const voices = (window.speechSynthesis.getVoices() || []).filter(v => v != null && v.lang);
let voices = [];
try {
voices = (window.speechSynthesis.getVoices() || []).filter(v => v != null && v.lang);
} catch (_) { return false; }
if (!voices.length) return false;
// Italian voices first, then others
const it = voices.filter(v => v.lang.startsWith('it'));