diff options
author | Sam Potts <me@sampotts.me> | 2018-01-25 22:41:30 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2018-01-25 22:41:30 +1100 |
commit | 5e68f8c8ddd11070a2b2ee11339be8c2c37ed8a5 (patch) | |
tree | ff40cad04b1dca8c3eb430f77289566bc565f6fa /src/js/plugins/youtube.js | |
parent | b4e22e2e7b6d73bb58778125801618f499c59bcc (diff) | |
download | plyr-5e68f8c8ddd11070a2b2ee11339be8c2c37ed8a5.tar.lz plyr-5e68f8c8ddd11070a2b2ee11339be8c2c37ed8a5.tar.xz plyr-5e68f8c8ddd11070a2b2ee11339be8c2c37ed8a5.zip |
Attempt to fix YouTube message error, added ads references, changes to bool
Diffstat (limited to 'src/js/plugins/youtube.js')
-rw-r--r-- | src/js/plugins/youtube.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plugins/youtube.js b/src/js/plugins/youtube.js index bec342a7..429e9eb8 100644 --- a/src/js/plugins/youtube.js +++ b/src/js/plugins/youtube.js @@ -108,8 +108,8 @@ const youtube = { playsinline: 1, // Allow iOS inline playback // Tracking for stats - origin: window && window.location.hostname, - widget_referrer: window && window.location.href, + // origin: window ? `${window.location.protocol}//${window.location.host}` : null, + widget_referrer: window ? window.location.href : null, // Captions are flaky on YouTube cc_load_policy: player.captions.active ? 1 : 0, |