mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import { enableProdMode } from '@angular/core';
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
import { AppModule } from './app/app.module';
|
|
import { environment } from './environments/environment';
|
|
|
|
import { defineCustomElements } from '@ionic/pwa-elements/loader';
|
|
|
|
import "hammerjs"; // HAMMER TIME
|
|
|
|
if (environment.production) {
|
|
enableProdMode();
|
|
}
|
|
|
|
|
|
/* Sentry.init(
|
|
{
|
|
dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
|
|
// To set your release and dist versions
|
|
release: 'gabinetedigital@1.0.0',
|
|
dist: '1',
|
|
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
|
|
// We recommend adjusting this value in production.
|
|
integrations: [
|
|
new BrowserTracing({
|
|
tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
|
|
}) as Integration,
|
|
]
|
|
},
|
|
// Forward the init method to the sibling Framework.
|
|
SentrySibling.init
|
|
); */
|
|
|
|
if ('serviceWorker' in navigator && environment.production) {
|
|
navigator.serviceWorker.register('firebase-messaging-sw.js')
|
|
.then(registration => {
|
|
console.log('Service Worker registrado com sucesso:', registration);
|
|
})
|
|
.catch(error => {
|
|
console.error('Erro ao registrar o Service Worker:', error);
|
|
});
|
|
}
|
|
|
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
.catch(err => console.log(err));
|
|
|
|
// Call the element loader after the platform has been bootstrapped
|
|
|
|
defineCustomElements(window);
|