Merge pull request #2670 from ethereum/rmOldPerm

remove the old permissionss saved in localstorage
pull/5370/head
yann300 5 years ago committed by GitHub
commit 4aa621d09d
  1. 7
      src/app/ui/persmission-handler.js

@ -41,6 +41,13 @@ export class PermissionHandler {
constructor () {
this.permissions = this._getFromLocal()
this.currentVersion = 1
// here we remove the old permissions saved before adding 'permissionVersion'
// since with v1 the structure has been changed because of new engine ^0.2.0-alpha.6 changes
if (!localStorage.getItem('permissionVersion')) {
localStorage.setItem('plugins/permissions', '')
localStorage.setItem('permissionVersion', this.currentVersion)
}
}
_getFromLocal () {

Loading…
Cancel
Save