Files
EeveeSpotifyReborn/Sources/EeveeSpotify/OpenSpotify.x.swift
T
2024-05-23 23:16:58 +03:00

17 lines
290 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
}
}