Remove no longer needed system events. Fixes #2537
This commit is contained in:
parent
48138b1bb4
commit
3aad0b5075
|
@ -12,11 +12,6 @@ import RSCore
|
||||||
import RSWeb
|
import RSWeb
|
||||||
import Articles
|
import Articles
|
||||||
|
|
||||||
extension Notification.Name {
|
|
||||||
static let appleColorPreferencesChangedNotification = Notification.Name("AppleColorPreferencesChangedNotification")
|
|
||||||
static let appleInterfaceThemeChangedNotification = Notification.Name("AppleInterfaceThemeChangedNotification")
|
|
||||||
}
|
|
||||||
|
|
||||||
protocol DetailWebViewControllerDelegate: class {
|
protocol DetailWebViewControllerDelegate: class {
|
||||||
func mouseDidEnter(_: DetailWebViewController, link: String)
|
func mouseDidEnter(_: DetailWebViewController, link: String)
|
||||||
func mouseDidExit(_: DetailWebViewController, link: String)
|
func mouseDidExit(_: DetailWebViewController, link: String)
|
||||||
|
@ -125,9 +120,6 @@ final class DetailWebViewController: NSViewController, WKUIDelegate {
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(faviconDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(faviconDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(faviconDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(faviconDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil)
|
||||||
|
|
||||||
DistributedNotificationCenter.default().addObserver(self, selector: #selector(appleColorPreferencesChanged(_:)), name: .appleColorPreferencesChangedNotification, object: nil)
|
|
||||||
DistributedNotificationCenter.default().addObserver(self, selector: #selector(appleInterfaceThemeChanged(_:)), name: .appleInterfaceThemeChangedNotification, object: nil)
|
|
||||||
|
|
||||||
webView.loadFileURL(ArticleRenderer.blank.url, allowingReadAccessTo: ArticleRenderer.blank.baseURL)
|
webView.loadFileURL(ArticleRenderer.blank.url, allowingReadAccessTo: ArticleRenderer.blank.baseURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,14 +137,6 @@ final class DetailWebViewController: NSViewController, WKUIDelegate {
|
||||||
reloadArticleImage()
|
reloadArticleImage()
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func appleColorPreferencesChanged(_ note: Notification) {
|
|
||||||
reloadHTML()
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func appleInterfaceThemeChanged(_ note: Notification) {
|
|
||||||
reloadHTML()
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: Media Functions
|
// MARK: Media Functions
|
||||||
|
|
||||||
func stopMediaPlayback() {
|
func stopMediaPlayback() {
|
||||||
|
|
Loading…
Reference in New Issue