mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
98aa050de9
Some platforms (e.g. IE11 and Tizen) don't support passing an object as the third argument to addEventListener. When we do, it interprets it as a "true" for the capture value and causes the listener to be called at the wrong time. This now detects whether the browser supports this and calls the boolean version if not. Fixes #1979 Change-Id: I05b3f5e536a9bcb5c275cac7f243a9ccc88f8149