Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kcak11 authored Apr 16, 2024
1 parent 19cb02a commit e4db677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"assets/images/bg5.svg",
"assets/images/bg6.svg"
];
var currentBG = sessionStorage.getItem("_wcb");
var currentBG = localStorage.getItem("_wcb");
if (currentBG) {
try {
backgrounds = backgrounds.filter(function (bg) {
Expand All @@ -19,7 +19,7 @@
}
}
var selectedBG = backgrounds.sort(function () { return Math.random() - Math.random(); })[0];
sessionStorage.setItem("_wcb", btoa(selectedBG));
localStorage.setItem("_wcb", btoa(selectedBG));
var mainBG = document.getElementById("mainBG");
var contentWrapper = document.getElementById("content_wrapper");
var mainContent = document.getElementById("main_content");
Expand Down

0 comments on commit e4db677

Please sign in to comment.