mirror of
https://github.com/ascribe/onion.git
synced 2025-01-05 11:25:09 +01:00
19 lines
480 B
JavaScript
19 lines
480 B
JavaScript
|
import AppConstants from '../../constants/application_constants';
|
||
|
|
||
|
import { InjectInHeadUtils } from '../../utils/inject_utils';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Imports videojs and its stylesheet.
|
||
|
*
|
||
|
* @return {Promise} Promise that resolves with [video.js, video-js.css] on success.
|
||
|
*/
|
||
|
function importLib() {
|
||
|
return Promise.all([
|
||
|
InjectInHeadUtils.inject(AppConstants.videojs.cssUrl),
|
||
|
InjectInHeadUtils.inject(AppConstants.videojs.sdkUrl)
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
export default { importLib };
|