mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Use location.protocol top identify if the page uses https protocol
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -736,7 +736,7 @@ function applyExpertSettings() {
|
|||||||
function addAdvancedInfo() {
|
function addAdvancedInfo() {
|
||||||
const advancedInfoSource = $("#advanced-info-data");
|
const advancedInfoSource = $("#advanced-info-data");
|
||||||
const advancedInfoTarget = $("#advanced-info");
|
const advancedInfoTarget = $("#advanced-info");
|
||||||
const isTLS = advancedInfoSource.data("tls");
|
const isTLS = location.protocol === "https:";
|
||||||
const clientIP = advancedInfoSource.data("client-ip");
|
const clientIP = advancedInfoSource.data("client-ip");
|
||||||
const XForwardedFor = globalThis.atob(advancedInfoSource.data("xff") ?? "");
|
const XForwardedFor = globalThis.atob(advancedInfoSource.data("xff") ?? "");
|
||||||
const starttime = parseFloat(advancedInfoSource.data("starttime"));
|
const starttime = parseFloat(advancedInfoSource.data("starttime"));
|
||||||
|
|||||||
Reference in New Issue
Block a user