mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: preloader element issue
This commit is contained in:
parent
5eef2fe05b
commit
abefadb333
@ -275,7 +275,10 @@
|
|||||||
document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
|
document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
|
||||||
// switch loader to show all has loaded
|
// switch loader to show all has loaded
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
document.getElementsByClassName("preloader")[0].className = "preloader preloader--done";
|
var preloader = document.getElementsByClassName("preloader");
|
||||||
|
if (preloader.length) {
|
||||||
|
preloader[0].className = "preloader preloader--done";
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user