Skip to content

Commit 68b4176

Browse files
authored
Merge pull request #271 from mattrubin/open-from-url-crash
Fix a crash when opening from a URL
2 parents bce10ed + f0bdbde commit 68b4176

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authenticator/Source/OTPAppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class OTPAppDelegate: UIResponder, UIApplicationDelegate {
6161
app.updateView()
6262
}
6363

64-
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
64+
func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey: Any] = [:]) -> Bool {
6565
if let token = Token(url: url) {
6666
let message = "Do you want to add a token for “\(token.name)”?"
6767

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to the project will be documented in this file.
44
[Authenticator]: https://github.com/mattrubin/Authenticator
55

66

7-
## [2.0.3] - 2018-04-16
7+
## [2.0.3] - 2018-04-23
88
- Disabled swipe-to-delete on the token list, to prevent tokens from being accidentally deleted. To delete a token, first tap "Edit" and then tap the red delete button.
99
- Fixed a bug where the app might crash when adding a token from an "otpauth://" URL.
1010

0 commit comments

Comments
 (0)