mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 12:06:16 -08:00
chore: update to angular v20
- Removed unnecessary imports from header, account-info, loading-overlay, navigation-bar, season-container, serial-details, and vod-details components. - Updated template syntax to use structural directives more efficiently in mpv-player-bar, account-info, navigation-bar, season-container, serial-details, and vod-details components. - Enhanced readability and maintainability of the code by organizing imports and using Angular's async pipe and structural directives appropriately. - Adjusted TypeScript configuration to use "bundler" for module resolution for better compatibility with modern build tools.
This commit is contained in:
1 parent
4fe40a741f
commit
cd2dd2ede5
47 files changed
+31451
-29290
No files matched your search
+3
-14
@@ -1,5 +1,5 @@
|
||||
import { enableProdMode } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
import { platformBrowser } from '@angular/platform-browser';
|
||||
import { AppModule } from './app/app.module';
|
||||
import { AppConfig } from './environments/environment';
|
||||
|
||||
@@ -7,17 +7,6 @@ if (AppConfig.production) {
|
||||
enableProdMode();
|
||||
}
|
||||
|
||||
// Detect if running in Tauri
|
||||
const isTauri = window && (window as any).__TAURI__;
|
||||
|
||||
platformBrowserDynamic()
|
||||
.bootstrapModule(AppModule, {
|
||||
preserveWhitespaces: false,
|
||||
})
|
||||
.then(() => {
|
||||
// Only register service worker for web builds
|
||||
if (!isTauri && 'serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/ngsw-worker.js');
|
||||
}
|
||||
})
|
||||
platformBrowser()
|
||||
.bootstrapModule(AppModule)
|
||||
.catch((err) => console.error(err));
|
||||
Reference in new issue
Block a user