mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +00:00
[api] Replace om:// scheme with cm://
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
}
|
||||
|
||||
func applicationDidReceiveUniversalLink(_ universalLink: URL) -> Bool {
|
||||
// Convert http(s)://omaps.app/ENCODEDCOORDS/NAME to om://ENCODEDCOORDS/NAME
|
||||
// Convert http(s)://comaps.app/ENCODEDCOORDS/NAME to cm://ENCODEDCOORDS/NAME
|
||||
self.url = URL(string: universalLink.absoluteString
|
||||
.replacingOccurrences(of: "http://omaps.app", with: "om:/")
|
||||
.replacingOccurrences(of: "https://omaps.app", with: "om:/"))
|
||||
.replacingOccurrences(of: "http://comaps.app", with: "cm:/")
|
||||
.replacingOccurrences(of: "https://comaps.app", with: "cm:/"))
|
||||
isLaunchedByUniversalLink = true
|
||||
return handleDeepLink(url: self.url!)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user