mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Melhorias
Alterar a ordem de apresentação do pop up sobre a recorrencia - Apresentar logo após o click no botão de edição do evento; A app não envia o comentario na revisão de eventos; Ao remover a recorrência do evento a app não remove os eventos da Agenda
This commit is contained in:
+11
-1
@@ -33,10 +33,20 @@ if (environment.production) {
|
||||
SentrySibling.init
|
||||
); */
|
||||
|
||||
if ('serviceWorker' in navigator && environment.production) {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('firebase-messaging-sw.js')
|
||||
.then(registration => {
|
||||
console.log('Service Worker registrado com sucesso:', registration);
|
||||
|
||||
|
||||
// Send data to the service worker
|
||||
if (registration.active) {
|
||||
registration.active.postMessage({ type: 'INIT_WEBSOCKET', url: 'wss://example.com/socket' });
|
||||
} else {
|
||||
navigator.serviceWorker.ready.then(registration => {
|
||||
registration.active.postMessage({ type: 'INIT_WEBSOCKET', url: 'wss://example.com/socket' });
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Erro ao registrar o Service Worker:', error);
|
||||
|
||||
Reference in New Issue
Block a user