mirror of
https://github.com/dstark5/Openlib.git
synced 2025-05-22 00:46:28 +08:00
fixed crashing
This commit is contained in:
@ -114,7 +114,9 @@ Future<void> launchEpubViewer(
|
|||||||
scrollDirection: EpubScrollDirection.HORIZONTAL,
|
scrollDirection: EpubScrollDirection.HORIZONTAL,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((epubConfig?.isNotEmpty ?? true) && (epubConfig != null)) {
|
if ((epubConfig?.isNotEmpty ?? true) &&
|
||||||
|
(epubConfig != null) &&
|
||||||
|
(!(epubConfig.startsWith('epubcfi')))) {
|
||||||
VocsyEpub.open(path,
|
VocsyEpub.open(path,
|
||||||
lastLocation: EpubLocator.fromJson(json.decode(epubConfig)));
|
lastLocation: EpubLocator.fromJson(json.decode(epubConfig)));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user