webview: Remove unnecessary __dirname resolution of customCss.

We’ve already checked that the file exists without resolving via
__dirname.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-23 23:29:20 -08:00
committed by Anders Kaseorg
parent c89ec2faf1
commit 13ce24b75e

View File

@@ -229,9 +229,7 @@ export default class WebView {
}
(async () =>
this.getWebContents().insertCSS(
fs.readFileSync(path.resolve(__dirname, customCss), "utf8"),
))();
this.getWebContents().insertCSS(fs.readFileSync(customCss, "utf8")))();
}
}