refactored to use new ModelHandler
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
f61e67df6b
commit
052165420d
@ -8,11 +8,9 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
open class ActionOpenUrlHandler: MVMCoreActionHandlerProtocol {
|
||||
required public init() {}
|
||||
open class ActionOpenUrlHandler: ModelHandler<ActionOpenUrlModel, Void> {
|
||||
|
||||
open func handleAction(_ model: ActionModelProtocol, additionalData: [AnyHashable : Any]?, delegateObject: DelegateObject?) {
|
||||
guard let model = model as? ActionOpenUrlModel else { return }
|
||||
public override func perform() {
|
||||
MVMCoreDispatchUtility.performBlock(onMainThread: { [self] in
|
||||
// Try loading the app url first, otherwise fall back to browser url.
|
||||
guard let appURL = model.appURL else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user