Fix atob() deprecation error. See https://stackoverflow.com/a/70851350

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2024-08-10 13:57:29 +02:00
parent 6ff1af301e
commit 2302fdac5d

View File

@@ -714,7 +714,7 @@ function addAdvancedInfo() {
const advancedInfoTarget = $("#advanced-info");
const isTLS = advancedInfoSource.data("tls");
const clientIP = advancedInfoSource.data("client-ip");
const XForwardedFor = atob(advancedInfoSource.data("xff"));
const XForwardedFor = window.atob(advancedInfoSource.data("xff"));
const starttime = parseFloat(advancedInfoSource.data("starttime"));
const endtime = parseFloat(advancedInfoSource.data("endtime"));
const totaltime = 1e3 * (endtime - starttime);