about summary refs log tree commit diff stats
path: root/src/app.js
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-24 20:45:34 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-24 20:45:34 +0300
commit76b2eb6f191c535a428ee71c74c406dc9d206d9e (patch)
tree677093cc43260fd7acc881da546031f04131b8c5 /src/app.js
parentec163996772bb0239ebc1beeffe79deb83a17140 (diff)
downloadthe-epube-76b2eb6f191c535a428ee71c74c406dc9d206d9e.tar.gz
the-epube-76b2eb6f191c535a428ee71c74c406dc9d206d9e.tar.xz
do not accept raw html for book cells, remove unused method
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/app.js b/src/app.js
index ef29043..fb20538 100644
--- a/src/app.js
+++ b/src/app.js
@@ -175,8 +175,8 @@ class AppClass extends AppCommon {
 			const data = await $.post("backend.php", {op: 'getinfo', id: bookId});
 			const comment = data.comment ? data.comment : 'No description available';
 
-			$("#summary-modal .modal-title").html(data.title);
-			$("#summary-modal .book-summary").html(comment);
+			$("#summary-modal .modal-title").text(data.title);
+			$("#summary-modal .book-summary").text(comment);
 
 			$("#summary-modal").modal();
 
@@ -184,8 +184,8 @@ class AppClass extends AppCommon {
 			const data = await localforage.getItem("epube-book." + bookId);
 			const comment = data.comment ? data.comment : 'No description available';
 
-			$("#summary-modal .modal-title").html(data.title);
-			$("#summary-modal .book-summary").html(comment);
+			$("#summary-modal .modal-title").text(data.title);
+			$("#summary-modal .book-summary").text(comment);
 
 			$("#summary-modal").modal();
 		}
@@ -280,10 +280,6 @@ class AppClass extends AppCommon {
 		}
 	}
 
-	appCheckOffline() {
-		EpubeApp.setOffline(!this.isOnline);
-	}
-
 	updateOfflinePrompts() {
 		const elems = $(".offline_dropitem");