From 5781a8b57d783b0e9a2de09ee7c5c1d393928905 Mon Sep 17 00:00:00 2001 From: Nguyen Cao Hanh Date: Wed, 26 Jun 2024 21:40:54 +0700 Subject: [PATCH] chore: parse one time only --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 9aab2bf..a1913bf 100644 --- a/index.html +++ b/index.html @@ -35,7 +35,7 @@ const initialToken = localStorage.getItem("zalo_access_token"); alert(initialToken); const user_access_token = JSON.parse(initialToken).access_token; - document.getElementById("user_token").innerHTML = "access_token = " + JSON.parse(initialToken).access_token; + document.getElementById("user_token").innerHTML = "access_token = " + user_access_token; // Display information of user fetch("https://graph.zalo.me/v2.0/me?fields=id,name,picture",