mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
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:
committed by
Anders Kaseorg
parent
c89ec2faf1
commit
13ce24b75e
@@ -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")))();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user