Преглед на файлове

Мелкие поправки

Book Pauk преди 6 години
родител
ревизия
ff3674aca7
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      client/components/Reader/ServerStorage/ServerStorage.vue

+ 2 - 2
client/components/Reader/ServerStorage/ServerStorage.vue

@@ -72,7 +72,7 @@ class ServerStorage extends Vue {
             let encrypted = null;
             try {
                 encrypted = await cryptoUtils.aesEncrypt(comp, this.serverStorageKey);
-            } catch(e) {
+            } catch (e) {
                 throw new Error('encrypt failed');
             }
             encoded.data = '1' + utils.toBase64(Buffer.from(encrypted));
@@ -102,7 +102,7 @@ class ServerStorage extends Vue {
                 let decrypted = null;
                 try {
                     decrypted = await cryptoUtils.aesDecrypt(a, this.serverStorageKey);
-                } catch(e) {
+                } catch (e) {
                     throw new Error('decrypt failed');
                 }
                 decoded.data = JSON.parse(utils.pako.inflate(decrypted, {to: 'string'}));