Browse Source

bug fix: wrong value when no data in local storage

master
filesite 5 months ago
parent
commit
ef286f5ae3
  1. 2
      www/js/beauty.js

2
www/js/beauty.js

@ -104,7 +104,7 @@ if ($('#image_site').get(0)) { @@ -104,7 +104,7 @@ if ($('#image_site').get(0)) {
toggleLampshow(lanpnum);
}
$('#image_site .lampJS').click(function () {
lanpnum = lanpnum == 0 ? 1 : 0;
lanpnum = !lanpnum ? 1 : 0;
toggleLampshow(lanpnum);
saveLanpnumToLocalstorage(lanpnum);
});

Loading…
Cancel
Save