Skip to content

Commit 2d7e200

Browse files
committed
Reference document.body directly in elfinder common_styles
1 parent da5782c commit 2d7e200

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
@@ -99,7 +99,7 @@ function addElfinderLightStylesheet() {
9999
// we dont want to style the body when elfinder is loaded as a component in a backpack view
100100
// we pass true when loading elfinder inside an iframe to style the iframe body.
101101
// use the topbar and footbar darker color as the background to ease transitions
102-
document.getElementsByTagName('body')[0].style.background = '#061325';
103-
document.getElementsByTagName('body')[0].style.opacity = 1;
102+
document.body.style.background = '#061325';
103+
document.body.style.opacity = 1;
104104
</script>
105105
@endif

0 commit comments

Comments
 (0)