mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-09 02:03:43 +00:00
Add Dolphin open-in option
This commit is contained in:
parent
f30721b066
commit
86a937360e
@ -263,6 +263,7 @@
|
|||||||
<string>brave</string>
|
<string>brave</string>
|
||||||
<string>onionhttp</string>
|
<string>onionhttp</string>
|
||||||
<string>ucbrowser</string>
|
<string>ucbrowser</string>
|
||||||
|
<string>dolphin</string>
|
||||||
</array>
|
</array>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
@ -142,6 +142,10 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope
|
|||||||
options.append(OpenInOption(identifier: "alook", application: .other(title: "Alook Browser", identifier: 1261944766, scheme: "alook", store: nil), action: {
|
options.append(OpenInOption(identifier: "alook", application: .other(title: "Alook Browser", identifier: 1261944766, scheme: "alook", store: nil), action: {
|
||||||
return .openUrl(url: "alook://\(url)")
|
return .openUrl(url: "alook://\(url)")
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
options.append(OpenInOption(identifier: "dolphin", application: .other(title: "Dolphin", identifier: 452204407, scheme: "dolphin", store: nil), action: {
|
||||||
|
return .openUrl(url: "dolphin://\(url)")
|
||||||
|
}))
|
||||||
|
|
||||||
options.append(OpenInOption(identifier: "onion", application: .other(title: "Onion Browser", identifier: 519296448, scheme: "onionhttp", store: nil), action: {
|
options.append(OpenInOption(identifier: "onion", application: .other(title: "Onion Browser", identifier: 519296448, scheme: "onionhttp", store: nil), action: {
|
||||||
if let url = URL(string: url), var components = URLComponents(url: url, resolvingAgainstBaseURL: true) {
|
if let url = URL(string: url), var components = URLComponents(url: url, resolvingAgainstBaseURL: true) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user