1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2023-11-07 22:46:15 +01:00
parent f6b2e55adb
commit c0dd51bd44
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -39,6 +39,13 @@
};
function loadLibs (list, callBack) {
if (!list.length) {
if (callBack) {
callBack();
};
return;
};
const src = list.shift();
const script = document.createElement('script');
@ -47,10 +54,9 @@
script.onload = function (e) {
if (list.length) {
loadScripts(list, callBack);
} else {
if (callBack) {
callBack();
};
} else
if (callBack) {
callBack();
};
};