Skip to content

Commit

Permalink
use sessionStorage instead of localStorage to persist version selection
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-terrana committed Aug 8, 2020
1 parent c0bc7b5 commit ff12006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/00-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
}

function setVersions(versions){
return window.localStorage.setItem(versionVar, JSON.stringify(versions))
return window.sessionStorage.setItem(versionVar, JSON.stringify(versions))
}

function getVersions(){
return JSON.parse(window.localStorage.getItem(versionVar))
return JSON.parse(window.sessionStorage.getItem(versionVar))
}

function setComponentVersion(component, version){
Expand Down

0 comments on commit ff12006

Please sign in to comment.