Skip to content

Commit

Permalink
bugfix for non-local clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jakethakur committed Dec 16, 2023
1 parent 9c315a9 commit c81f793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selection/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ document.getElementById("play").onclick = function(){
sessionStorage.setItem("name",document.getElementById("name").value);
// customisation
selected[selected.class].clothing = selected[selected.class][selected.classFull+"Clothing"];
sessionStorage.setItem("customisation",selected[selected.class]);
sessionStorage.setItem("customisation",JSON.stringify(selected[selected.class]));

// sometimes sessionStorage doesn't carry over i.e. firefox local version. so store this info in the domain name instead for local versions
if (location.hostname === "" || location.hostname === "localhost") {
Expand Down

0 comments on commit c81f793

Please sign in to comment.