store "openTabs" session

This commit is contained in:
zadam
2019-05-10 21:43:40 +02:00
parent 89d4be504d
commit be68391c37
10 changed files with 118 additions and 45 deletions

View File

@@ -5,8 +5,22 @@ const log = require('../../services/log');
const attributes = require('../../services/attributes');
// options allowed to be updated directly in options dialog
const ALLOWED_OPTIONS = ['protectedSessionTimeout', 'noteRevisionSnapshotTimeInterval',
'zoomFactor', 'theme', 'syncServerHost', 'syncServerTimeout', 'syncProxy', 'leftPaneMinWidth', 'leftPaneWidthPercent', 'hoistedNoteId', 'mainFontSize', 'treeFontSize', 'detailFontSize'];
const ALLOWED_OPTIONS = [
'protectedSessionTimeout',
'noteRevisionSnapshotTimeInterval',
'zoomFactor',
'theme',
'syncServerHost',
'syncServerTimeout',
'syncProxy',
'leftPaneMinWidth',
'leftPaneWidthPercent',
'hoistedNoteId',
'mainFontSize',
'treeFontSize',
'detailFontSize',
'openTabs'
];
async function getOptions() {
return await optionService.getOptionsMap(ALLOWED_OPTIONS);