Open benjah1 opened 9 years ago
On popcorn.HTMLYouTubeVideoElement.unit.html Before update: 28 fail.
After update,
This is great for fixing chrome However, CustomEvent doesn't exist in IE (well exists but doesnt work) :(
Edit: Fixed by adding a Polyfill for IE
Which is here:
(function () {
function CustomEvent ( event, params ) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent( 'CustomEvent' );
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
return evt;
};
CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
})();
Added the polyfill. Tested on IE11.
Two concerns,
This is for youtube stop working on Chrome on Jul 21. It is fine on Firefox, so a Chrome update may break it.