Skip to content

Commit

Permalink
Session Storage added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihal-Pinto committed Feb 2, 2024
1 parent f7023da commit 6f4a78a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
</div>
</a>
</div>

<script>
sessionStorage['sessionID'] = (Math.random() + 1).toString(36).substring(7);
</script>

</body>
</html>
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let token
function ready(){
token = window.location.search;
console.log(token.substring(6));
console.log(sessionStorage['sessionID']);
}

addEventListener("DOMContentLoaded", ready);

0 comments on commit 6f4a78a

Please sign in to comment.