mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
server, electron: Fix crash if locale is undefined
This commit is contained in:
parent
729a188528
commit
bae63b08a2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user