mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-01 18:25:06 -04:00
fix: Replace window.onload with addEventListener for better event handling and hide spinner in skeleton functions
This commit is contained in:
1 parent
36a10fb9ef
commit
6194134cd0
5 files changed
+9
-5
No files matched your search
@@ -294,6 +294,8 @@ async function getData() {
|
||||
generateTabs();
|
||||
} catch (err) {
|
||||
console.error("Failed to load data", err);
|
||||
hideSpinner();
|
||||
hidePluginsSkeleton();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -865,7 +867,7 @@ function hidePluginsSkeleton() {
|
||||
}
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
setTimeout(hidePluginsSkeleton, 15000);
|
||||
setTimeout(function() { hidePluginsSkeleton(); hideSpinner(); }, 15000);
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in new issue
Block a user