From 5cc0cef06c34a53a64d8782c1035d4e1196b52aa Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 20 Feb 2020 00:38:09 +0000 Subject: [PATCH] Use Persistent Storage where possible Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/ElectronPlatform.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index d2d27aecc5..2d14e8c638 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -200,16 +200,6 @@ export default class ElectronPlatform extends VectorBasePlatform { this.startUpdateCheck = this.startUpdateCheck.bind(this); this.stopUpdateCheck = this.stopUpdateCheck.bind(this); - - this._tryPersistStorage(); - } - - async _tryPersistStorage() { - if (navigator.storage && navigator.storage.persist) { - const granted = await navigator.storage.persist(); - const persisted = await navigator.storage.persisted(); - console.log("Storage persist request granted: " + granted + " persisted: " + persisted); - } } async getConfig(): Promise<{}> {