Skip to content

Commit d6587b9

Browse files
authored
Merge pull request element-hq#12425 from vector-im/t3chguy/persist
Use Persistent Storage where possible
2 parents eb66d62 + 5cc0cef commit d6587b9

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)