]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/main.browser.aot.ts
Add markdown support to video description
[github/Chocobozzz/PeerTube.git] / client / src / main.browser.aot.ts
1 /* tslint: disable */
2
3 import { platformBrowser } from '@angular/platform-browser';
4 import { decorateModuleRef } from './app/environment';
5
6 /**
7 * App Module
8 * our top level module that holds all of our components.
9 */
10 import { AppModuleNgFactory } from '../compiled/src/app/app.module.ngfactory';
11
12 /**
13 * Bootstrap our Angular app with a top level NgModule.
14 */
15 export function main(): Promise<any> {
16 return platformBrowser()
17 .bootstrapModuleFactory(AppModuleNgFactory)
18 .then(decorateModuleRef)
19 .catch((err) => console.error(err));
20 }
21
22 switch (document.readyState) {
23 case 'loading':
24 document.addEventListener('DOMContentLoaded', _domReadyHandler, false);
25 break;
26 case 'interactive':
27 case 'complete':
28 default:
29 main();
30 }
31
32 function _domReadyHandler() {
33 document.removeEventListener('DOMContentLoaded', _domReadyHandler, false);
34 main();
35 }