fix(electron): option does not exist

pull/1436/head
Elian Doran 2025-03-26 08:30:56 +07:00
parent 5148ce64ae
commit 5ec3d58f6f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -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()}`;