mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
feat: speek funcionando no android atraves do firefox
This commit is contained in:
@@ -58,10 +58,8 @@ function notificacao(){
|
||||
if (data['notificacao'] == 'true'){
|
||||
console.log('verdadeiro')
|
||||
document.cookie = `pronto=${data['pronto']}`;
|
||||
// navigator.vibrate(200);
|
||||
// navigator.vibrate([200, 100, 200]);
|
||||
mostrarNotificacao(data['titulo'], data['corpo'],'Garçom')
|
||||
texto = new SpeechSynthesisUtterance(data['corpo']+', para '+data['titulo']);
|
||||
texto = new SpeechSynthesisUtterance(data['corpo']+', para '+data['titulo']+' tá pronto.');
|
||||
window.speechSynthesis.speak(texto);
|
||||
console.log(data['notificacao'])
|
||||
|
||||
@@ -78,7 +76,6 @@ function notificacao(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
setInterval(()=> {
|
||||
notificacao()
|
||||
}, 10000)
|
||||
|
||||
Reference in New Issue
Block a user