diff --git a/Sources/EeveeSpotify/OpenSpotify.x.swift b/Sources/EeveeSpotify/OpenSpotify.x.swift index 8f0aa2a..83e1b5e 100644 --- a/Sources/EeveeSpotify/OpenSpotify.x.swift +++ b/Sources/EeveeSpotify/OpenSpotify.x.swift @@ -1,15 +1,14 @@ import Orion import UIKit -class UIOpenURLContextHook: ClassHook { - - static let targetName = "UIOpenURLContext" +class UIOpenURLContextHook: ClassHook { 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