We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1072d54 commit 1ae8275Copy full SHA for 1ae8275
Sources/Models/YouTubePlayer+Parameters.swift
@@ -233,7 +233,12 @@ extension YouTubePlayer.Parameters: ExpressibleByURL {
233
public extension YouTubePlayer.Parameters {
234
235
/// The default origin URL.
236
- static let defaultOriginURL = URL(string: "https://youtubeplayer")
+ static let defaultOriginURL: URL? = {
237
+ var urlComponents = URLComponents()
238
+ urlComponents.scheme = "https"
239
+ urlComponents.host = Bundle.main.bundleIdentifier?.lowercased() ?? "youtubeplayer"
240
+ return urlComponents.url
241
+ }()
242
243
}
244
0 commit comments