Unverified Commit 4c0c7e70 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2670 from ethereum/rmOldPerm

remove the old permissionss saved in localstorage
parents 9b988564 7b043f56
...@@ -41,6 +41,13 @@ export class PermissionHandler { ...@@ -41,6 +41,13 @@ export class PermissionHandler {
constructor () { constructor () {
this.permissions = this._getFromLocal() 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 () { _getFromLocal () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment