mirror of
https://github.com/dstark5/Openlib.git
synced 2025-05-20 16:06:23 +08:00
fixed crashing
This commit is contained in:
@ -114,7 +114,9 @@ Future<void> 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 {
|
||||
|
Reference in New Issue
Block a user