Browse Source

fix keep_ui_checkbox not working

Andrew Dolgov 3 months ago
parent
commit
6836be7ced
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/read.js

+ 2 - 2
js/read.js

@@ -287,8 +287,8 @@ function init_reader() {
 		localforage.getItem("epube.keep-ui-visible").then(function(keep) {
 			$(".keep_ui_checkbox")
 				.attr("checked", keep)
-				.on("click", function(elem) {
-					localforage.setItem("epube.keep-ui-visible", elem.checked);
+				.on("click", function(evt) {
+					localforage.setItem("epube.keep-ui-visible", evt.target.checked);
 				});
 		});