Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
feat(token): add get token
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 10, 2024
1 parent 2854891 commit dbac710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const elm_save = document.querySelector('.save');
// Variables
let isReady = false;
let toggleStatus = 0
let token;

// Global variables
var Module = {
noInitialRun: true,
Expand Down Expand Up @@ -210,6 +212,11 @@ window.addEventListener('load', () => {

checkDefault();

if (getCookie("token")) {
token = getCookie("token")
}


if (localStorage.getItem("cache-code")) {
elm_code.value = localStorage.getItem("cache-code").toString().trim();
}
Expand Down

0 comments on commit dbac710

Please sign in to comment.