Skip to content

Build your personal knowledge base with Trilium Notes

refactor(native-buttons): reduce duplication

Elian Doran14fb8b5dd9c3
diff --git a/src/services/window.ts b/src/services/window.ts
index 27a174b78a..5be4e6e80b 100644
--- a/src/services/window.ts
+++ b/src/services/window.ts
@@ -115,14 +115,8 @@ async function createMainWindow(app: App) {
function getWindowExtraOpts() {
const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
if (!optionService.getOptionBool('nativeTitleBarVisible')) {
- if (process.platform !== "darwin") {
- // Windows, Linux
- extraOpts.titleBarStyle = "hidden";
- extraOpts.titleBarOverlay = true;
- } else {
- // macOS
- extraOpts.titleBarStyle = "hiddenInset";
- }
+ extraOpts.titleBarStyle = "hidden";
+ extraOpts.titleBarOverlay = true;
}
return extraOpts;