Reload the web view when the Theme changes
This commit is contained in:
parent
cad91d9415
commit
7646029f2e
@ -70,6 +70,7 @@ class WebViewController: UIViewController {
|
|||||||
NotificationCenter.default.addObserver(self, selector: #selector(webFeedIconDidBecomeAvailable(_:)), name: .WebFeedIconDidBecomeAvailable, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(webFeedIconDidBecomeAvailable(_:)), name: .WebFeedIconDidBecomeAvailable, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(avatarDidBecomeAvailable(_:)), name: .AvatarDidBecomeAvailable, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(avatarDidBecomeAvailable(_:)), name: .AvatarDidBecomeAvailable, 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(currentArticleThemeDidChangeNotification(_:)), name: .CurrentArticleThemeDidChangeNotification, object: nil)
|
||||||
|
|
||||||
// Configure the tap zones
|
// Configure the tap zones
|
||||||
configureTopShowBarsView()
|
configureTopShowBarsView()
|
||||||
@ -100,6 +101,10 @@ class WebViewController: UIViewController {
|
|||||||
reloadArticleImage()
|
reloadArticleImage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc func currentArticleThemeDidChangeNotification(_ note: Notification) {
|
||||||
|
loadWebView()
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Actions
|
// MARK: Actions
|
||||||
|
|
||||||
@objc func showBars(_ sender: Any) {
|
@objc func showBars(_ sender: Any) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user