Skip to content

Commit

Permalink
feat(account): update AccountViewController.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Nov 15, 2023
1 parent 9ae0407 commit b7d60f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion IVPNClient/Scenes/AccountScreen/AccountViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class AccountViewController: UITableViewController {
}

@IBAction func deleteAccount(_ sender: UIButton) {
openAccountSettings()
if let url = URL(string: "https://www.ivpn.net/account/settings") {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}

@IBAction func addMoreTime(_ sender: Any) {
Expand Down
4 changes: 0 additions & 4 deletions IVPNClient/Utilities/Extensions/UIViewController+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ extension UIViewController {
openWebPage("https://www.ivpn.net/privacy-mobile-app/")
}

func openAccountSettings() {
openWebPage("https://www.ivpn.net/account/settings")
}

func registerUserActivity(type: String, title: String) {
let activity = NSUserActivity(activityType: type)
activity.title = title
Expand Down

0 comments on commit b7d60f8

Please sign in to comment.