diff options
Diffstat (limited to 'js/reader_iframe.js')
-rw-r--r-- | js/reader_iframe.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/reader_iframe.js b/js/reader_iframe.js index bcc5b44..c58061e 100644 --- a/js/reader_iframe.js +++ b/js/reader_iframe.js @@ -3,6 +3,7 @@ /* global EpubeApp */ let Reader; +let App; function enable_swipes() { $(window).off("swipeleft swiperight"); @@ -18,6 +19,7 @@ function enable_swipes() { $(document).ready(function() { Reader = parent.__get_reader(); + App = parent.__get_app(); /*$(window).on("doubletap", function(evt) { const sel = getSelection().toString().trim(); @@ -59,7 +61,7 @@ $(document).ready(function() { let selectionChangeTimeout = null; $(document).on("selectionchange", function() { - if (!navigator.onLine) return; + if (!App.onLine) return; window.clearTimeout(selectionChangeTimeout); |