mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-20 23:34:57 +01:00
Fixed: Caching for dynamically loaded JS files Fixed: Incorrect caching of initialize.js (cherry picked from commit f0cb5b81f140c67fa84162e094cc4e0f3476f5da) Closes #3883 Closes #3890 Closes #3893
19 lines
521 B
TypeScript
19 lines
521 B
TypeScript
import './polyfills';
|
|
import 'Styles/globals.css';
|
|
import './index.css';
|
|
|
|
const initializeUrl = `${
|
|
window.Lidarr.urlBase
|
|
}/initialize.json?t=${Date.now()}`;
|
|
const response = await fetch(initializeUrl);
|
|
|
|
window.Lidarr = await response.json();
|
|
|
|
/* eslint-disable no-undef, @typescript-eslint/ban-ts-comment */
|
|
// @ts-ignore 2304
|
|
__webpack_public_path__ = `${window.Lidarr.urlBase}/`;
|
|
/* eslint-enable no-undef, @typescript-eslint/ban-ts-comment */
|
|
|
|
const { bootstrap } = await import('./bootstrap');
|
|
|
|
await bootstrap();
|