Skip to content

Commit

Permalink
Specify https in YouTube SDK location
Browse files Browse the repository at this point in the history
Prevents weird error: Failed to execute 'postMessage' on 'DOMWindow'
Attempting to load http redirects to https anyway
  • Loading branch information
cookpete committed Apr 13, 2016
1 parent fededdd commit c05bd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import loadScript from 'load-script'
import Base from './Base'
import { parseStartTime } from '../utils'

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

0 comments on commit c05bd9d

Please sign in to comment.