Files
EeveeSpotifyReborn/Sources/EeveeSpotify/OpenSpotify.x.swift
T
2024-10-09 21:38:29 +03:00

15 lines
288 B
Swift

import Orion
import UIKit
class UIOpenURLContextHook: ClassHook<UIOpenURLContext> {
func URL() -> URL {
let url = orig.URL()
if url.isOpenSpotifySafariExtension {
return Foundation.URL(string: "https:/\(url.path)")!
}
return url
}
}