From 7efeaa3a224e71498a43f4a33526cae15e3ec7e2 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 2 Jan 2018 21:23:35 +0100 Subject: [PATCH] All: Fixed minor issue when logger not defined --- ReactNativeClient/lib/services/EncryptionService.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactNativeClient/lib/services/EncryptionService.js b/ReactNativeClient/lib/services/EncryptionService.js index a74c6779e..dea3ddee7 100644 --- a/ReactNativeClient/lib/services/EncryptionService.js +++ b/ReactNativeClient/lib/services/EncryptionService.js @@ -1,4 +1,5 @@ const { padLeft } = require('lib/string-utils.js'); +const { Logger } = require('lib/logger.js'); const { shim } = require('lib/shim.js'); const Setting = require('lib/models/Setting.js'); const MasterKey = require('lib/models/MasterKey'); @@ -18,6 +19,7 @@ class EncryptionService { this.loadedMasterKeys_ = {}; this.activeMasterKeyId_ = null; this.defaultEncryptionMethod_ = EncryptionService.METHOD_SJCL; + this.logger_ = new Logger(); this.headerTemplates_ = { 1: {