diff options
Diffstat (limited to 'packages/service-preload/src/index.ts')
-rw-r--r-- | packages/service-preload/src/index.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/service-preload/src/index.ts b/packages/service-preload/src/index.ts index bb4a62d..8b6630a 100644 --- a/packages/service-preload/src/index.ts +++ b/packages/service-preload/src/index.ts | |||
@@ -21,10 +21,6 @@ | |||
21 | import { ServiceToMainIpcMessage, webSource } from '@sophie/service-shared'; | 21 | import { ServiceToMainIpcMessage, webSource } from '@sophie/service-shared'; |
22 | import { ipcRenderer, webFrame } from 'electron'; | 22 | import { ipcRenderer, webFrame } from 'electron'; |
23 | 23 | ||
24 | import { getLogger } from './utils/log'; | ||
25 | |||
26 | const log = getLogger('index'); | ||
27 | |||
28 | if (webFrame.parent === null) { | 24 | if (webFrame.parent === null) { |
29 | // Inject CSS to simulate `browserView.setBackgroundColor`. | 25 | // Inject CSS to simulate `browserView.setBackgroundColor`. |
30 | // 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. |
@@ -62,5 +58,5 @@ async function fetchAndExecuteInjectScript(): Promise<void> { | |||
62 | } | 58 | } |
63 | 59 | ||
64 | fetchAndExecuteInjectScript().catch((error) => { | 60 | fetchAndExecuteInjectScript().catch((error) => { |
65 | log.error('Failed to fetch inject source:', error); | 61 | console.error('Failed to fetch inject source:', error); |
66 | }); | 62 | }); |