Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

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 #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

3 comments on commit c390661

@bsclifton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@bsclifton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bbondy can you add a test plan to the top post in #5233? Thanks 😄

@bbondy
Copy link
Member Author

@bbondy bbondy commented on c390661 Apr 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test plan is the steps to reproduce in comment 0.

Please sign in to comment.