Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Sep 4, 2018
1 parent 7fd8d21 commit 956d92a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export const hasSession = (sessions, initData) => {
// (following the msneedkey PlayReady path), this coversion may not be important. It
// is safe though, and might be a good idea to retain in the short term (until we have
// catalogued the full range of browsers and their implementations).
if (arrayBuffersEqual(arrayBufferFrom(sessions[i].initData),
arrayBufferFrom(initData))) {
const sessionBuffer = arrayBufferFrom(sessions[i].initData);
const initDataBuffer = arrayBufferFrom(initData);

if (arrayBuffersEqual(sessionBuffer, initDataBuffer)) {
return true;
}
}
Expand Down

0 comments on commit 956d92a

Please sign in to comment.