Skip to content

Commit

Permalink
Fix exception in controls for cast receiver demo
Browse files Browse the repository at this point in the history
In the case of the receiver demo, there is no CastProxy object.

Change-Id: I856b505d25feacc7af9e828046cead82e0081ebc
  • Loading branch information
joeyparrish committed Sep 28, 2017
1 parent 1224464 commit 4670d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/common/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ ShakaControls.prototype.isOpaque_ = function() {
if (!this.enabled_) return false;

// While you are casting, the UI is always opaque.
if (this.castProxy_.isCasting()) return true;
if (this.castProxy_ && this.castProxy_.isCasting()) return true;

var parentElement = this.controls_.parentElement;
// The controls are opaque if either:
Expand Down

0 comments on commit 4670d6c

Please sign in to comment.