Skip to content

Commit

Permalink
Fix origin
Browse files Browse the repository at this point in the history
  • Loading branch information
OriginalEXE committed Aug 24, 2018
1 parent 7e761a5 commit 33708f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export default function( vidim ) {
fs: 0,
iv_load_policy: 3,
modestbranding: 1,
origin: window.location.host,
origin: typeof window.location.origin !== 'undefined'
? window.location.origin
: `${window.location.protocol}//${window.location.hostname}${(window.location.port ? ':' + window.location.port : '')}`,
playsinline: 1,
rel: 0,
showinfo: 0,
Expand Down

0 comments on commit 33708f2

Please sign in to comment.