1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-10 12:08:14 +02:00

fix: Remove listener used to test if passive listeners are supported (#4787)

Once you have successfully tested that passive listeners are supported you should remove the test listeners :)
This commit is contained in:
Lorenzo Cinque 2017-12-04 23:43:37 +01:00 committed by Gary Katsevman
parent 2337c1bf43
commit e582c3c843

View File

@ -216,6 +216,7 @@ let _supportsPassive = false;
});
window.addEventListener('test', null, opts);
window.removeEventListener('test', null, opts);
} catch (e) {
// disregard
}