refactored options_init to options on frontend

This commit is contained in:
zadam
2019-08-25 17:36:13 +02:00
parent f9abea83f3
commit 9622b046e0
14 changed files with 27 additions and 27 deletions

View File

@@ -1,16 +1,16 @@
import optionsInit from './options_init.js';
import optionsService from './options.js';
import server from "./server.js";
import tree from "./tree.js";
import noteDetailService from "./note_detail.js";
let hoistedNoteId;
optionsInit.waitForOptions().then(options => {
optionsService.waitForOptions().then(options => {
hoistedNoteId = options.get('hoistedNoteId');
});
async function getHoistedNoteId() {
await optionsInit.waitForOptions();
await optionsService.waitForOptions();
return hoistedNoteId;
}