diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 17:36:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-12 10:58:16 +0100 |
commit | 63c4db6d71b98523753c51747e308682d9a2e8a0 (patch) | |
tree | d26c0d092ce016f2afe56bf71b08ca4698fe673f /client/src/main.browser.aot.ts | |
parent | 908f6e5e38e85cc0debab0051b7fa34b13025f96 (diff) | |
download | PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.tar.gz PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.tar.zst PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.zip |
Move to angular cli
Diffstat (limited to 'client/src/main.browser.aot.ts')
-rw-r--r-- | client/src/main.browser.aot.ts | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/client/src/main.browser.aot.ts b/client/src/main.browser.aot.ts deleted file mode 100644 index 9635d615b..000000000 --- a/client/src/main.browser.aot.ts +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
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 | } | ||