mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-21 05:34:42 -05:00
remove unused vars
This commit is contained in:
parent
9ddd2c7365
commit
7bc38d4231
@ -488,7 +488,7 @@ export default {
|
|||||||
|
|
||||||
loadUsername() {
|
loadUsername() {
|
||||||
const jwtToken = localStorage.getItem("token");
|
const jwtToken = localStorage.getItem("token");
|
||||||
const [match, headerBase64, payloadBase64, signatureBase64] = jwtToken.match(/^(\S+)\.(\S+)\.(\S+)$/i);
|
const [, payloadBase64] = jwtToken.match(/^\S+\.(\S+)\.\S+$/i);
|
||||||
const payload = atob(payloadBase64);
|
const payload = atob(payloadBase64);
|
||||||
const oPayload = JSON.parse(payload);
|
const oPayload = JSON.parse(payload);
|
||||||
this.username = oPayload.username;
|
this.username = oPayload.username;
|
||||||
|
Loading…
Reference in New Issue
Block a user