Skip to content

Commit

Permalink
Renaming function
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmmayer committed Jul 13, 2022
1 parent f39e698 commit 5d60378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions Hacker News Menu Feed/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {

statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)

Timer.scheduledTimer(timeInterval: 2520, target: self, selector: #selector(self.test), userInfo: nil, repeats: true)
Timer.scheduledTimer(timeInterval: 2520, target: self, selector: #selector(self.load), userInfo: nil, repeats: true)

let one = NSMenuItem(title: "Open in Browser", action: #selector(self.openInBrowser), keyEquivalent: "o")

Expand All @@ -24,10 +24,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {

self.statusItem.menu = self.menu

test()
load()
}

@objc public func test() {
@objc public func load() {
getStories { stories in

for (idx, story) in stories.enumerated() {
Expand Down

0 comments on commit 5d60378

Please sign in to comment.