Skip to content

Commit

Permalink
change variable name to camelCase
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Warner <[email protected]>
  • Loading branch information
PromoFaux committed Jun 3, 2020
1 parent e230482 commit d9dce13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pi-hole/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ $(document).ready(function () {

// Bar/Smooth chart toggle
$(function () {
var chkbox_data = localStorage.getItem("barchart_chkbox");
var chkboxData = localStorage.getItem("barchart_chkbox");

if (chkbox_data !== null) {
if (chkboxData !== null) {
// Restore checkbox state
$("#bargraphs").prop("checked", chkbox_data === "true");
$("#bargraphs").prop("checked", chkboxData === "true");
} else {
// Initialize checkbox
$("#bargraphs").prop("checked", true);
Expand Down

0 comments on commit d9dce13

Please sign in to comment.