This commit is contained in:
eevee
2024-05-23 23:16:58 +03:00
parent ddccf282c8
commit 29226870bb
+3 -4
View File
@@ -1,15 +1,14 @@
import Orion
import UIKit
class UIOpenURLContextHook: ClassHook<NSObject> {
static let targetName = "UIOpenURLContext"
class UIOpenURLContextHook: ClassHook<UIOpenURLContext> {
func URL() -> URL {
let url = orig.URL()
if url.isOpenSpotifySafariExtension {
return Foundation.URL(string: "https:/\(orig.URL().path)")!
return Foundation.URL(string: "https:/\(url.path)")!
}
return url