mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-21 06:39:52 -04:00
fix: Replace window.onload with addEventListener for better event handling and hide spinner in skeleton functions
This commit is contained in:
@@ -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