mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
server, electron: Fix crash if locale is undefined
This commit is contained in:
@@ -18,7 +18,7 @@ export async function initializeTranslations() {
|
||||
function getCurrentLanguage() {
|
||||
let language;
|
||||
if (sql_init.isDbInitialized()) {
|
||||
language = options.getOption("locale");
|
||||
language = options.getOptionOrNull("locale");
|
||||
}
|
||||
|
||||
if (!language) {
|
||||
|
||||
Reference in New Issue
Block a user