mirror of
https://github.com/zadam/trilium.git
synced 2026-02-27 09:03:36 +01:00
chore(core): fix some use of logs
This commit is contained in:
parent
26d299aa44
commit
ebe7276f40
@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import optionService from "./options.js";
|
||||
import log from "./log.js";
|
||||
import { getLog } from "./log.js";
|
||||
import { isElectron, isMac } from "./utils.js";
|
||||
import type { ActionKeyboardShortcut, KeyboardShortcut } from "@triliumnext/commons";
|
||||
import { t } from "i18next";
|
||||
@ -854,6 +854,7 @@ function getKeyboardActions() {
|
||||
}
|
||||
}
|
||||
|
||||
const log = getLog();
|
||||
for (const option of optionService.getOptions()) {
|
||||
if (option.name.startsWith("keyboardShortcuts")) {
|
||||
let actionName = option.name.substring(17);
|
||||
|
||||
@ -3,7 +3,7 @@ import { type KeyboardShortcutWithRequiredActionName, type OptionMap, type Optio
|
||||
import appInfo from "./app_info.js";
|
||||
import dateUtils from "./utils/date.js";
|
||||
import keyboardActions from "./keyboard_actions.js";
|
||||
import log from "./log.js";
|
||||
import { getLog } from "./log.js";
|
||||
import optionService from "./options.js";
|
||||
import { isWindows, randomSecureToken } from "./utils.js";
|
||||
|
||||
@ -238,6 +238,7 @@ function initStartupOptions() {
|
||||
|
||||
const allDefaultOptions = defaultOptions.concat(getKeyboardDefaultOptions());
|
||||
|
||||
const log = getLog();
|
||||
for (const { name, value, isSynced } of allDefaultOptions) {
|
||||
if (!(name in optionsMap)) {
|
||||
let resolvedValue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user