From df5001b36a9a89aee01a469abda68512726dd84b Mon Sep 17 00:00:00 2001 From: Alexandru Branza Date: Mon, 23 Dec 2024 12:54:30 +0200 Subject: [PATCH] Possible Fix for Background Issue 2 --- src/ShellVideo/ShellVideo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ShellVideo/ShellVideo.js b/src/ShellVideo/ShellVideo.js index a206990..2bb03dc 100644 --- a/src/ShellVideo/ShellVideo.js +++ b/src/ShellVideo/ShellVideo.js @@ -95,6 +95,12 @@ function ShellVideo(options) { for(var container = options.containerElement; container; container = container.parentElement) { container.style.background = bg; } + if (((window || {}).document || {}).getElementsByTagName) { + var body = window.document.getElementsByTagName('body'); + if ((body || [])[0]) { + body[0].style.background = bg; + } + } } function logProp(args) { // eslint-disable-next-line no-console