Skip to content

Commit

Permalink
Remove optional closure
Browse files Browse the repository at this point in the history
  • Loading branch information
lukakerr committed Mar 26, 2019
1 parent 927de16 commit b648ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pine/Controllers/PreviewViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import WebKit

class PreviewViewController: NSViewController, WKNavigationDelegate {

@IBOutlet weak private var webPreview: WKWebView!
@IBOutlet weak var webPreview: WKWebView!

/// The current directory that external assets can load from
private var permissionDirectory: URL?
Expand Down Expand Up @@ -45,7 +45,7 @@ class PreviewViewController: NSViewController, WKNavigationDelegate {
window.scrollTo(0, height * \(percentage));
"""

webPreview.evaluateJavaScript(jsString) { (_, _) in }
webPreview.evaluateJavaScript(jsString)
}

/// Set the content of the preview to a HTML string
Expand Down

0 comments on commit b648ba7

Please sign in to comment.