OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/frontend/src/main.ts

32 lines
850 B

7 years ago
import {OpenProjectModule} from 'core-app/angular4-modules';
import {enableProdMode} from '@angular/core';
import * as jQuery from "jquery";
import {environment} from './environments/environment';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
7 years ago
(window as any).global = window;
/** Load sentry integration as soon as possible */
import {SentryReporter} from "core-app/sentry/sentry-reporter";
window.ErrorReporter = new SentryReporter();
7 years ago
require('./app/init-vendors');
require('./app/init-globals');
7 years ago
if (environment.production) {
enableProdMode();
}
7 years ago
jQuery(function () {
// Due to the behaviour of the Edge browser we need to wait for 'DOM ready'
7 years ago
platformBrowserDynamic()
.bootstrapModule(OpenProjectModule)
.then(platformRef => {
jQuery('body').addClass('__ng2-bootstrap-has-run');
});
});