1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-05 22:57:29 +02:00

Mobile: Done UI for E2EE

This commit is contained in:
Laurent Cozic
2017-12-31 14:58:50 +01:00
parent 6ff19063ef
commit e19c26fdd1
6 changed files with 80 additions and 10 deletions

View File

@@ -281,8 +281,12 @@ async function initialize(dispatch) {
const mainLogger = new Logger();
mainLogger.addTarget('database', { database: logDatabase, source: 'm' });
if (Setting.value('env') == 'dev') mainLogger.addTarget('console');
mainLogger.setLevel(Logger.LEVEL_DEBUG);
mainLogger.setLevel(Logger.LEVEL_INFO);
if (Setting.value('env') == 'dev') {
mainLogger.addTarget('console');
mainLogger.setLevel(Logger.LEVEL_DEBUG);
}
reg.setLogger(mainLogger);
reg.setShowErrorMessageBoxHandler((message) => { alert(message) });
@@ -345,7 +349,7 @@ async function initialize(dispatch) {
await Setting.load();
if (Setting.value('firstStart')) {
const locale = NativeModules.I18nManager.localeIdentifier
let locale = NativeModules.I18nManager.localeIdentifier
if (!locale) locale = defaultLocale();
Setting.setValue('locale', closestSupportedLocale(locale));
if (Setting.value('env') === 'dev') Setting.setValue('sync.target', SyncTargetRegistry.nameToId('onedrive_dev'));