mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
1119 Privacy - Query Page and Dom.storage
handle localStorage being null Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
This commit is contained in:
@@ -231,7 +231,7 @@ $(function () {
|
||||
fieldtext += '<input type="hidden" name="id" value="' + parseInt(data[4], 10) + '">';
|
||||
|
||||
$(row).addClass(blocked === true ? "blocked-row" : "allowed-row");
|
||||
if (localStorage.getItem("colorfulQueryLog_chkbox") === "true") {
|
||||
if (localStorage && localStorage.getItem("colorfulQueryLog_chkbox") === "true") {
|
||||
$(row).addClass(blocked === true ? "text-red" : "text-green");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user