mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 09:50:31 +01:00
20 lines
539 B
JavaScript
20 lines
539 B
JavaScript
import AppConstants from '../../constants/application_constants';
|
|
|
|
import { InjectInHeadUtils } from '../../utils/inject_utils';
|
|
|
|
|
|
/**
|
|
* Imports shmui and its dependencies (jQuery)
|
|
*
|
|
* @return {Promise} Promise that resolves with [jquery.shmui.js, shmui.css] on success.
|
|
*/
|
|
function importLib() {
|
|
return InjectInHeadUtils.inject(AppConstants.jquery.sdkUrl)
|
|
.then(() => Promise.all([
|
|
System.import('shmui/jquery.shmui'),
|
|
System.import('shmui/shmui.css')
|
|
]));
|
|
}
|
|
|
|
export default { importLib };
|