mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
refactoring
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
const optionService = require('../../services/options');
|
||||
const log = require('../../services/log');
|
||||
const attributes = require('../../services/attributes');
|
||||
const searchService = require('../../services/search/services/search');
|
||||
|
||||
// options allowed to be updated directly in options dialog
|
||||
const ALLOWED_OPTIONS = new Set([
|
||||
@@ -91,8 +92,7 @@ function update(name, value) {
|
||||
}
|
||||
|
||||
function getUserThemes() {
|
||||
const notes = attributes.getNotesWithLabel('appTheme');
|
||||
|
||||
const notes = searchService.findNotes("#appTheme");
|
||||
const ret = [];
|
||||
|
||||
for (const note of notes) {
|
||||
|
||||
Reference in New Issue
Block a user