Skip to content

Build your personal knowledge base with Trilium Notes

fix(electron): option does not exist

Elian Doran5ec3d58f6f7d
diff --git a/electron.ts b/electron.ts
index 6beda97cf4..9384409477 100644
--- a/electron.ts
+++ b/electron.ts
@@ -23,7 +23,7 @@ electronDl({ saveAs: true });
// needed for excalidraw export https://github.com/zadam/trilium/issues/4271
electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features");
-electron.app.commandLine.appendSwitch("lang", options.getOption("formattingLocale") ?? "en");
+electron.app.commandLine.appendSwitch("lang", options.getOptionOrNull("formattingLocale") ?? "en");
electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`;