소스 검색

fix osm url

Simon Laux 2 년 전
부모
커밋
8a5c35fddc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -294,7 +294,7 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
                                 if UIApplication.shared.canOpenURL(url) {
                                     UIApplication.shared.open(url, options: [:], completionHandler: nil)
                                 }else {
-                                    if let url = URL(string: "https://www.openstreetmap.org/#map=16/33.89041/35.50664\(location.replacingOccurrences(of: ",", with: "/"))") {
+                                    if let url = URL(string: "https://www.openstreetmap.org/#map=16/\(location.replacingOccurrences(of: ",", with: "/"))") {
                                         UIApplication.shared.open(url, options: [:], completionHandler: nil)
                                     }
                                 }