Remove flush and restore of web view queues. Issue #1882
This commit is contained in:
parent
38981d01bd
commit
76d5f4a073
@ -25,17 +25,6 @@ class WebViewProvider: NSObject {
|
|||||||
viewController.view.insertSubview(queue, at: 0)
|
viewController.view.insertSubview(queue, at: 0)
|
||||||
|
|
||||||
replenishQueueIfNeeded()
|
replenishQueueIfNeeded()
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(didEnterBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func didEnterBackground() {
|
|
||||||
flushQueue()
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func willEnterForeground() {
|
|
||||||
replenishQueueIfNeeded()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func flushQueue() {
|
func flushQueue() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user