Files
doneit-web/src/main.ts
T

47 lines
1.8 KiB
TypeScript
Raw Normal View History

2020-08-05 15:39:16 +01:00
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
2022-12-30 15:34:45 +01:00
/////123////import * as Sentry from '@sentry/capacitor';
2022-12-17 17:46:08 +01:00
// The example is using Angular, Import '@sentry/vue' or '@sentry/react' when using a Sibling different than Angular.
2022-12-30 15:34:45 +01:00
/////123////import * as SentrySibling from '@sentry/angular';
2022-12-17 17:46:08 +01:00
// For automatic instrumentation (highly recommended)
2022-12-30 15:34:45 +01:00
/////123//// import { Integration } from '@sentry/types';
/////123//// import { BrowserTracing } from '@sentry/tracing';
2022-12-17 17:46:08 +01:00
2020-08-05 15:39:16 +01:00
if (environment.production) {
enableProdMode();
}
2022-12-30 15:34:45 +01:00
/////123//// Sentry.init(
/////123//// {
/////123//// dsn: 'https://5b345a3ae70b4e4da463da65881b4aaa@o4504340905525248.ingest.sentry.io/4504345615794176',
// To set your release and dist versions
/////123//// release: 'gabinetedigital@1.0.0',
/////123//// dist: '1',
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// We recommend adjusting this value in production.
/////123//// tracesSampleRate: 1.0,
/////123//// integrations: [
/////123//// new BrowserTracing({
/////123//// tracingOrigins: ['localhost', 'https://gd-api.oapr.gov.ao/api/'],
/////123//// }) as Integration,
/////123//// ]
/////123//// },
2022-12-17 17:46:08 +01:00
// Forward the init method to the sibling Framework.
2022-12-30 15:34:45 +01:00
/////123//// SentrySibling.init
/////123////);
2022-12-17 17:46:08 +01:00
2020-08-05 15:39:16 +01:00
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.log(err));
// Call the element loader after the platform has been bootstrapped
2021-11-30 12:30:58 +01:00
defineCustomElements(window);