Rename API

This commit is contained in:
Felix Förtsch
2019-01-06 20:33:20 +01:00
parent a1331486a1
commit a863d6d5a9
3 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class StatusBarController: NSObject, NSMenuItemValidation {
let statusBar = NSMenu()
let statusBarItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
let matchesAPI = MatchesAPI()
let matchesAPI = LiquipediaMatchesAPI()
var matches = [Match]()
override func awakeFromNib() {
@@ -54,7 +54,7 @@ class StatusBarController: NSObject, NSMenuItemValidation {
}
}
if let matches = self.matchesAPI.fetchMatches(for: "dota2") {
if let matches = self.matchesAPI.fetchMatches(for: "counterstrike") {
for match in matches {
let newItem = MatchMenuItem.init(for: match, action: #selector(self.openStreamLink))
newItem.tag = 1