mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
15 lines
288 B
Swift
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
|
|
}
|
|
}
|