From 0f0820dae47e661677a2a2ff29d38674ae537495 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 19 Jan 2020 13:49:46 +0200 Subject: [PATCH] Use `text()` for token. Signed-off-by: XhmikosR --- scripts/pi-hole/js/groups-adlists.js | 2 +- scripts/pi-hole/js/groups-clients.js | 2 +- scripts/pi-hole/js/groups-domains.js | 2 +- scripts/pi-hole/js/groups.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 53a137ba..f4c3ced7 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -9,7 +9,7 @@ var table; var groups = []; -var token = $("#token").html(); +var token = $("#token").text(); var info = null; function showAlert(type, icon, title, message) { diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index 68fbed9e..2de8d1d5 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -7,7 +7,7 @@ var table; var groups = []; -var token = $("#token").html(); +var token = $("#token").text(); var info = null; function showAlert(type, icon, title, message) { diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index b83c5296..e09d3062 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -9,7 +9,7 @@ var table; var groups = []; -var token = $("#token").html(); +var token = $("#token").text(); var info = null; function showAlert(type, icon, title, message) { diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index b7ec372c..b3af908c 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -8,7 +8,7 @@ /* global moment:false */ var table; -var token = $("#token").html(); +var token = $("#token").text(); var info = null; function showAlert(type, icon, title, message) {