diff --git a/lib/ui/components/file_buttons_widget.dart b/lib/ui/components/file_buttons_widget.dart index 18cdcf7..65dd84c 100644 --- a/lib/ui/components/file_buttons_widget.dart +++ b/lib/ui/components/file_buttons_widget.dart @@ -114,7 +114,9 @@ Future launchEpubViewer( scrollDirection: EpubScrollDirection.HORIZONTAL, ); - if ((epubConfig?.isNotEmpty ?? true) && (epubConfig != null)) { + if ((epubConfig?.isNotEmpty ?? true) && + (epubConfig != null) && + (!(epubConfig.startsWith('epubcfi')))) { VocsyEpub.open(path, lastLocation: EpubLocator.fromJson(json.decode(epubConfig))); } else {