about summary refs log tree commit diff stats
path: root/js/reader.js
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2020-04-21 07:49:42 +0300
committerAndrew Dolgov <noreply@fakecake.org>2020-04-21 07:49:42 +0300
commitbb0bbfb1ed76bb9c429b92d3769c19adef553e43 (patch)
tree14c6cb620fd9d1851d077800c93c951c83e86f14 /js/reader.js
parentf28a75864777b72027275f620feb31a357a5ae3d (diff)
downloadthe-epube-bb0bbfb1ed76bb9c429b92d3769c19adef553e43.tar.gz
the-epube-bb0bbfb1ed76bb9c429b92d3769c19adef553e43.tar.xz
epubeapp-related stuff
Diffstat (limited to 'js/reader.js')
-rw-r--r--js/reader.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/reader.js b/js/reader.js
index 537835a..1f6509a 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -1,5 +1,7 @@
 'use strict';
 
+/* global EpubeApp */
+
 function enable_swipes() {
 	$(window).off("swipeleft swiperight");
 
@@ -15,7 +17,6 @@ function enable_swipes() {
 $(document).ready(function() {
 
 	$(window).on("doubletap", function(/* evt */) {
-
 		const sel = getSelection().toString().trim();
 
 		if (sel.match(/^$/)) {
@@ -29,7 +30,10 @@ $(document).ready(function() {
 			if ($(".modal").is(":visible"))
 					return;
 
-			parent.show_ui(true);
+			if (typeof EpubeApp != "undefined")
+				EpubeApp.toggleActionBar();
+			else
+				parent.show_ui(true);
 		}
 	});