From 6757d238d0a0cd29b3933b31bf43c0f6adbf17ac Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Mon, 19 Jul 2021 14:16:58 -0700 Subject: [PATCH] fix: Fix compilation error with strict constness 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 --- lib/polyfill/media_capabilities.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/polyfill/media_capabilities.js b/lib/polyfill/media_capabilities.js index a72283662e..7ce154e5ae 100644 --- a/lib/polyfill/media_capabilities.js +++ b/lib/polyfill/media_capabilities.js @@ -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');