Skip to content

Commit

Permalink
Simpler way to load a url
Browse files Browse the repository at this point in the history
  • Loading branch information
John W. Long committed Dec 12, 2014
1 parent 567bf73 commit 17f05f9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Trello/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ class ViewController: NSViewController {
}

func loadUrl(url:NSString) {
let nsurl = NSURL(string: url)
let request = NSURLRequest(URL: nsurl!)
webView.mainFrame.loadRequest(request)
webView.mainFrameURL = url
}

}

0 comments on commit 17f05f9

Please sign in to comment.