fix(electron): option does not exist

This commit is contained in:
Elian Doran 2025-03-26 08:30:56 +02:00
parent 5148ce64ae
commit 5ec3d58f6f
No known key found for this signature in database

View File

@ -23,7 +23,7 @@ electronDl({ saveAs: true });
// needed for excalidraw export https://github.com/zadam/trilium/issues/4271 // needed for excalidraw export https://github.com/zadam/trilium/issues/4271
electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features"); 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()}`; electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`;