Skip to content

Commit

Permalink
fix: Nightmode not blur when click document
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Feb 6, 2020
1 parent 0b60eca commit 2c8466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ $(document).ready(function () {
$('.mode').on('click', function (e) {
e.stopPropagation();
isNightMode = !isNightMode;
isNightModeFocus = !isNightModeFocus;
isNightModeFocus = true;
Stun.utils.Cookies().set(NIGHT_MODE_COOKIES_KEY, isNightMode ? 1 : 0);
$nightMode.toggleClass('mode--checked');
$nightMode.addClass('mode--focus');
Expand Down

0 comments on commit 2c8466e

Please sign in to comment.