From ddbd710be5c9f5a3a84d9415791deec415ea3e9d Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Fri, 24 Dec 2021 02:01:31 +0100
Subject: feat: Alternative background color workaround

Let's try injecting CSS to set the background color of html to
white (instead of transparent) into the loaded pages. The CSS is
injected before the website's own styles load, so they should always
have the lowest priority.
---
 packages/renderer/src/components/BrowserViewPlaceholder.tsx | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'packages/renderer/src/components/BrowserViewPlaceholder.tsx')

diff --git a/packages/renderer/src/components/BrowserViewPlaceholder.tsx b/packages/renderer/src/components/BrowserViewPlaceholder.tsx
index 06dc7fe..0187fee 100644
--- a/packages/renderer/src/components/BrowserViewPlaceholder.tsx
+++ b/packages/renderer/src/components/BrowserViewPlaceholder.tsx
@@ -118,9 +118,6 @@ export const BrowserViewPlaceholder = observer(function BrowserViewPlaceholder()
     <Box
       sx={{
         flex: 1,
-        // Workaround: display a plain white background if we fail to set the BrowserView background color.
-        // https://github.com/electron/electron/issues/31019
-        background: '#fff',
       }}
       ref={ref}
     />
-- 
cgit v1.2.3-54-g00ecf

