mirror of
https://github.com/fankes/AndroidNotifyIconAdapt.git
synced 2025-09-04 01:35:26 +08:00
Fix dynamic loading js files bug
This commit is contained in:
@@ -201,7 +201,7 @@
|
|||||||
script.src = 'resources/js/' + names[i] + '?randomId=' + radomTime;
|
script.src = 'resources/js/' + names[i] + '?randomId=' + radomTime;
|
||||||
script.onload = () => {
|
script.onload = () => {
|
||||||
loadedCount++;
|
loadedCount++;
|
||||||
if (loadedCount >= names.length - 1) setTimeout(() => { callback(); }, 150);
|
if (loadedCount >= names.length) setTimeout(() => { callback(); }, 150);
|
||||||
};
|
};
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user