mirror of
https://github.com/fankes/AndroidNotifyIconAdapt.git
synced 2025-09-01 08:15:31 +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.onload = () => {
|
||||
loadedCount++;
|
||||
if (loadedCount >= names.length - 1) setTimeout(() => { callback(); }, 150);
|
||||
if (loadedCount >= names.length) setTimeout(() => { callback(); }, 150);
|
||||
};
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
Reference in New Issue
Block a user