blob: 9c1de1c7a0ccb659528806c1162b5f148236904c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
STUDIP.domReady(() => {
const avatarTypes = ['courses', 'institutes', 'studygroups', 'users'];
avatarTypes.forEach((type) => {
if (document.getElementById(`avatar-${type}-app`)) {
Promise.all([
STUDIP.loadChunk('vue'),
import(
/* webpackChunkName: "avatar-app" */
'@/vue/avatar-app.js'
),
]).then(([{ createApp, store }, { default: mountApp }]) => {
return mountApp(STUDIP, createApp, store, `#avatar-${type}-app`);
});
}
});
});
|