Fix not using var when accessing sessionStorage
This commit is contained in:
parent
8bc0161e66
commit
fd27729072
|
@ -9,13 +9,13 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||
let insert = back.dataset.insert == "true";
|
||||
|
||||
if (name) {
|
||||
window.sessionStorage.setItem('back-' + 'group', JSON.stringify({
|
||||
window.sessionStorage.setItem('back-' + group, JSON.stringify({
|
||||
'text': name,
|
||||
'location': window.location.toString()
|
||||
}));
|
||||
}
|
||||
|
||||
let history = JSON.parse(window.sessionStorage.getItem('back-' + 'group'));
|
||||
let history = JSON.parse(window.sessionStorage.getItem('back-' + group));
|
||||
if (insert && history) {
|
||||
|
||||
let a = document.createElement("a");
|
||||
|
|
Reference in New Issue