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

Commit

Permalink
Merge pull request #3 from smartmobilefactory/DBGIOS-817_JumpFix
Browse files Browse the repository at this point in the history
unwrapped url scheme in Folio reader page
  • Loading branch information
tschob authored Mar 20, 2017
2 parents 019a6dd + 5e8df05 commit d5d7e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/FolioReaderPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ open class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate, UIGestureRe
var isClassBasedOnClickListenerScheme = false
for listener in readerConfig.classBasedOnClickListeners {

if url.scheme == listener.schemeName,
if let _urlScheme = url.scheme,
(_urlScheme == listener.schemeName),
let absoluteURLString = request.url?.absoluteString,
let range = absoluteURLString.range(of: "/clientX=") {
let baseURL = absoluteURLString.substring(to: range.lowerBound)
Expand Down

0 comments on commit d5d7e57

Please sign in to comment.