This commit is contained in:
xaoxuu 2023-12-30 11:47:45 +08:00
parent a0958f13c2
commit c39c8db914
1 changed files with 5 additions and 2 deletions

View File

@ -244,9 +244,12 @@ if (stellar.plugins.stellar) {
const els = document.getElementsByClassName('stellar-' + key + '-api');
if (els != undefined && els.length > 0) {
stellar.jQuery(() => {
stellar.loadScript(js, { defer: true });
if (key == 'timeline' || 'memos') {
stellar.loadScript(stellar.plugins.marked);
stellar.loadScript(stellar.plugins.marked).then(function () {
stellar.loadScript(js, { defer: true });
});
} else {
stellar.loadScript(js, { defer: true });
}
})
}