diff options
Diffstat (limited to 'packages/service-preload/src')
-rw-r--r-- | packages/service-preload/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'; | |||
24 | if (webFrame.parent === null) { | 24 | if (webFrame.parent === null) { |
25 | // Inject CSS to simulate `browserView.setBackgroundColor`. | 25 | // Inject CSS to simulate `browserView.setBackgroundColor`. |
26 | // This is injected before the page loads, so the styles from the website will overwrite it. | 26 | // This is injected before the page loads, so the styles from the website will overwrite it. |
27 | webFrame.insertCSS('html { background-color: #fff; }'); | 27 | webFrame.insertCSS(':root { background-color: #fff; }'); |
28 | } | 28 | } |
29 | 29 | ||
30 | /** | 30 | /** |