Skip to content

Commit bec67c9

Browse files
committed
Reference document.body directly in elfinder common_styles
1 parent b8efa19 commit bec67c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/views/common_styles.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function addElfinderLightStylesheet() {
8181
// we dont want to style the body when elfinder is loaded as a component in a backpack view
8282
// we pass true when loading elfinder inside an iframe to style the iframe body.
8383
// use the topbar and footbar darker color as the background to ease transitions
84-
document.getElementsByTagName('body')[0].style.background = '#061325';
85-
document.getElementsByTagName('body')[0].style.opacity = 1;
84+
document.body.style.background = '#061325';
85+
document.body.style.opacity = 1;
8686
</script>
8787
@endif

0 commit comments

Comments
 (0)