1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2131 from dmitrylyzo/es6-webos

Fix babel support for legacy browsers
This commit is contained in:
Joshua M. Boniface 2020-12-04 20:34:12 -05:00 committed by GitHub
commit e3964a29c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 52 additions and 21 deletions

View file

@ -1,3 +1,4 @@
import { importModule } from '@uupaa/dynamic-import-polyfill';
import './viewManager/viewContainer.css';
import Dashboard from '../scripts/clientUtils';
@ -17,7 +18,7 @@ import Dashboard from '../scripts/clientUtils';
controllerUrl = Dashboard.getPluginUrl(controllerUrl);
const apiUrl = ApiClient.getUrl('/web/' + controllerUrl);
return import(/* webpackIgnore: true */ apiUrl).then((ControllerFactory) => {
return importModule(apiUrl).then((ControllerFactory) => {
options.controllerFactory = ControllerFactory;
});
}