Skip to content

Commit 13ce24b

Browse files
committed
webview: Remove unnecessary __dirname resolution of customCss.
We’ve already checked that the file exists without resolving via __dirname. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent c89ec2f commit 13ce24b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/renderer/js/components/webview.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ export default class WebView {
229229
}
230230

231231
(async () =>
232-
this.getWebContents().insertCSS(
233-
fs.readFileSync(path.resolve(__dirname, customCss), "utf8"),
234-
))();
232+
this.getWebContents().insertCSS(fs.readFileSync(customCss, "utf8")))();
235233
}
236234
}
237235

0 commit comments

Comments
 (0)