Skip to content

Commit c05bd9d

Browse files
committed
Specify https in YouTube SDK location
Prevents weird error: Failed to execute 'postMessage' on 'DOMWindow' Attempting to load http redirects to https anyway
1 parent fededdd commit c05bd9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/players/YouTube.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import loadScript from 'load-script'
44
import Base from './Base'
55
import { parseStartTime } from '../utils'
66

7-
const SDK_URL = '//www.youtube.com/iframe_api'
7+
const SDK_URL = 'https://www.youtube.com/iframe_api'
88
const SDK_GLOBAL = 'YT'
99
const SDK_GLOBAL_READY = 'onYouTubeIframeAPIReady'
1010
const MATCH_URL = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/

0 commit comments

Comments
 (0)