Skip to content

Commit

Permalink
fix: Fix compilation error with strict constness
Browse files Browse the repository at this point in the history
The MediaCapabilities polyfill caused compiler errors in stricter
environments, in which navigator.mediaCapabilities was marked as
const.  This suppresses constness errors from the compiler in the
install method of the polyfill.

Change-Id: Idb47a473335c886a2a7b3c77b84ce8f51fce4114
  • Loading branch information
joeyparrish committed Jul 20, 2021
1 parent 3cc9ec5 commit 6757d23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/polyfill/media_capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ goog.require('shaka.util.Platform');
shaka.polyfill.MediaCapabilities = class {
/**
* Install the polyfill if needed.
* @suppress {const}
*/
static install() {
shaka.log.debug('MediaCapabilities: install');
Expand Down

0 comments on commit 6757d23

Please sign in to comment.