Skip to content

Commit

Permalink
Merge pull request #12425 from vector-im/t3chguy/persist
Browse files Browse the repository at this point in the history
Use Persistent Storage where possible
  • Loading branch information
t3chguy authored Feb 20, 2020
2 parents eb66d62 + 5cc0cef commit d6587b9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/vector/platform/ElectronPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<{}> {
Expand Down

0 comments on commit d6587b9

Please sign in to comment.