Skip to content

Commit f8342b4

Browse files
committed
Add action "success" in demo app to test issue #8
1 parent 210676c commit f8342b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SampleApp/CallbackURLKitDemo/AppDelegate.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3939
manager.registerToURLEvent()
4040
manager.callbackURLScheme = Manager.urlSchemes?.first
4141
manager[CallbackURLKitDemo.PrintActionString] = CallbackURLKitDemo.PrintAction
42+
43+
manager["success"] = { (parameters, success, failure, cancel) in
44+
DispatchQueue.main.async {
45+
success(nil)
46+
}
47+
}
48+
4249
}
4350

4451
}

0 commit comments

Comments
 (0)