mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
20 lines
533 B
JavaScript
20 lines
533 B
JavaScript
import AppConstants from '../../constants/application_constants';
|
|
|
|
import { InjectInHeadUtils } from '../../utils/inject';
|
|
|
|
|
|
/**
|
|
* 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 };
|