Skip to content

Commit 5cc0cef

Browse files
committed
Use Persistent Storage where possible
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent eb66d62 commit 5cc0cef

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,6 @@ export default class ElectronPlatform extends VectorBasePlatform {
200200

201201
this.startUpdateCheck = this.startUpdateCheck.bind(this);
202202
this.stopUpdateCheck = this.stopUpdateCheck.bind(this);
203-
204-
this._tryPersistStorage();
205-
}
206-
207-
async _tryPersistStorage() {
208-
if (navigator.storage && navigator.storage.persist) {
209-
const granted = await navigator.storage.persist();
210-
const persisted = await navigator.storage.persisted();
211-
console.log("Storage persist request granted: " + granted + " persisted: " + persisted);
212-
}
213203
}
214204

215205
async getConfig(): Promise<{}> {

0 commit comments

Comments
 (0)