Make a Browser struct with two static methods to replace two top-level functions.

This commit is contained in:
Brent Simmons
2017-10-05 18:12:58 -07:00
parent 77b01eb72c
commit 4d77dbfd36
5 changed files with 22 additions and 21 deletions

View File

@@ -86,7 +86,7 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
@IBAction func openArticleInBrowser(_ sender: AnyObject?) {
if let link = currentLink {
openInBrowser(link)
Browser.open(link)
}
}