diff options
author | Andrew Dolgov <[email protected]> | 2020-04-21 07:49:42 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-04-21 07:49:42 +0300 |
commit | bb0bbfb1ed76bb9c429b92d3769c19adef553e43 (patch) | |
tree | 14c6cb620fd9d1851d077800c93c951c83e86f14 /js/reader.js | |
parent | f28a75864777b72027275f620feb31a357a5ae3d (diff) |
epubeapp-related stuff
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 8 |
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); } }); |