diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 363bd83ef5..419897ca75 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 e9641c3678..29d4356f0d 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 85d3b1f2c4..60d3deaa42 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 9ff0fd8b97..ba43710774 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) {