Skip to content

Commit

Permalink
Add wideivne for amazon prime
Browse files Browse the repository at this point in the history
Auditors: @bsclifton

Before the URLs used to be indistinguishable for amazon prime, but seems they updated and it's on its own domain now, which makes things very simple :D

Fix brave#5233
  • Loading branch information
bbondy committed Apr 3, 2017
1 parent 45c9361 commit c390661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ class Frame extends ImmutableComponent {
// https://www.nfl.com is said to be a widevine site but it actually uses Flash for me Oct 10, 2016
const widevineSites = ['https://www.netflix.com',
'http://bitmovin.com',
'https://www.primevideo.com',
'https://shaka-player-demo.appspot.com']
const isForWidevineTest = process.env.NODE_ENV === 'test' && location.endsWith('/drm.html')
if (!isForWidevineTest && (!origin || !widevineSites.includes(origin))) {
Expand Down

0 comments on commit c390661

Please sign in to comment.