1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-02 22:27:20 +02:00
Radarr/frontend/src/index.ts
Mark McDowall e691253419 UI loading improvements
Fixed: Caching for dynamically loaded JS files
Fixed: Incorrect caching of initialize.js
(cherry picked from commit f0cb5b81f140c67fa84162e094cc4e0f3476f5da)
2023-07-24 11:40:50 +03:00

20 lines
521 B
TypeScript

import './polyfills';
import 'Styles/globals.css';
import './index.css';
const initializeUrl = `${
window.Radarr.urlBase
}/initialize.json?t=${Date.now()}`;
const response = await fetch(initializeUrl);
window.Radarr = await response.json();
/* eslint-disable no-undef, @typescript-eslint/ban-ts-comment */
// @ts-ignore 2304
__webpack_public_path__ = `${window.Radarr.urlBase}/`;
/* eslint-enable no-undef, @typescript-eslint/ban-ts-comment */
const { bootstrap } = await import('./bootstrap');
await bootstrap();