From cc214bb1afd37068c2bbc93f33990ca93f9a900f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 8 Feb 2022 21:40:40 +0100 Subject: feat: Load and switch services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- packages/service-preload/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/service-preload/src/index.ts') diff --git a/packages/service-preload/src/index.ts b/packages/service-preload/src/index.ts index 5383f42..e546f2f 100644 --- a/packages/service-preload/src/index.ts +++ b/packages/service-preload/src/index.ts @@ -24,7 +24,7 @@ import { ipcRenderer, webFrame } from 'electron'; if (webFrame.parent === null) { // Inject CSS to simulate `browserView.setBackgroundColor`. // This is injected before the page loads, so the styles from the website will overwrite it. - webFrame.insertCSS('html { background-color: #fff; }'); + webFrame.insertCSS(':root { background-color: #fff; }'); } /** -- cgit v1.2.3-54-g00ecf