Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
4c0c7e70
Unverified
Commit
4c0c7e70
authored
Apr 02, 2020
by
yann300
Committed by
GitHub
Apr 02, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2670 from ethereum/rmOldPerm
remove the old permissionss saved in localstorage
parents
9b988564
7b043f56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
persmission-handler.js
src/app/ui/persmission-handler.js
+7
-0
No files found.
src/app/ui/persmission-handler.js
View file @
4c0c7e70
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment