diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-19 11:12:01 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-19 15:25:41 +0100 |
commit | 4f926722ea6784ea389013378fd233f59077ec8a (patch) | |
tree | 36e92da1d8fc9394e1e36144f206e0427b7c02c3 /client/src/main.ts | |
parent | fce7fe04eed39e23e76717085e92118e963def81 (diff) | |
download | PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.gz PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.zst PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.zip |
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index 3fb9b346e..2d1749c42 100644 --- a/client/src/main.ts +++ b/client/src/main.ts | |||
@@ -4,8 +4,6 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' | |||
4 | import { AppModule } from './app/app.module' | 4 | import { AppModule } from './app/app.module' |
5 | import { environment } from './environments/environment' | 5 | import { environment } from './environments/environment' |
6 | 6 | ||
7 | import { hmrBootstrap } from './hmr' | ||
8 | |||
9 | if (environment.production) { | 7 | if (environment.production) { |
10 | enableProdMode() | 8 | enableProdMode() |
11 | } | 9 | } |
@@ -36,13 +34,4 @@ const bootstrap = () => platformBrowserDynamic() | |||
36 | return null | 34 | return null |
37 | }) | 35 | }) |
38 | 36 | ||
39 | if (environment.hmr) { | 37 | bootstrap() |
40 | if (module[ 'hot' ]) { | ||
41 | hmrBootstrap(module, bootstrap) | ||
42 | } else { | ||
43 | console.error('HMR is not enabled for webpack-dev-server!') | ||
44 | console.log('Are you using the --hmr flag for ng serve?') | ||
45 | } | ||
46 | } else { | ||
47 | bootstrap() | ||
48 | } | ||