mirror of https://github.com/Radarr/Radarr
20 lines
521 B
TypeScript
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();
|