Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit bcbbc52

Browse files
Fix return error
1 parent 5ee2fe1 commit bcbbc52

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Source/FolioReaderKit.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ open class FolioReader: NSObject {
9999

100100
if let readerCenter = FolioReader.shared.readerCenter {
101101
UIView.animate(withDuration: 0.6, animations: {
102-
readerCenter.currentPage?.webView.js("nightMode(\(nightMode))")
102+
_ = readerCenter.currentPage?.webView.js("nightMode(\(nightMode))")
103103
readerCenter.pageIndicatorView?.reloadColors()
104104
readerCenter.configureNavBar()
105105
readerCenter.scrollScrubber?.reloadColors()
@@ -116,8 +116,7 @@ open class FolioReader: NSObject {
116116
get { return FolioReaderFont(rawValue: FolioReader.defaults.value(forKey: kCurrentFontFamily) as! Int)! }
117117
set (font) {
118118
FolioReader.defaults.setValue(font.rawValue, forKey: kCurrentFontFamily)
119-
120-
FolioReader.shared.readerCenter?.currentPage?.webView.js("setFontName('\(font.cssIdentifier)')")
119+
_ = FolioReader.shared.readerCenter?.currentPage?.webView.js("setFontName('\(font.cssIdentifier)')")
121120
}
122121
}
123122

0 commit comments

Comments
 (0)