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";
|
let insert = back.dataset.insert == "true";
|
||||||
|
|
||||||
if (name) {
|
if (name) {
|
||||||
window.sessionStorage.setItem('back-' + 'group', JSON.stringify({
|
window.sessionStorage.setItem('back-' + group, JSON.stringify({
|
||||||
'text': name,
|
'text': name,
|
||||||
'location': window.location.toString()
|
'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) {
|
if (insert && history) {
|
||||||
|
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
|
|
Reference in New Issue