mirror of
https://github.com/DevLARLEY/WidevineProxy2.git
synced 2026-04-02 10:39:02 +00:00
Merge pull request #51 from fireattack/fix-mediakeysession
Ensure MediaKeySession is defined
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
proxy(EventTarget.prototype, 'addEventListener', (target, thisArg, args) => {
|
||||
const [type, listener] = args;
|
||||
|
||||
if (thisArg == null || !(thisArg instanceof MediaKeySession) || typeof MediaKeyMessageEvent === 'undefined' || type !== "message" || !listener) {
|
||||
if (thisArg == null || typeof MediaKeySession === 'undefined' || !(thisArg instanceof MediaKeySession) || typeof MediaKeyMessageEvent === 'undefined' || type !== "message" || !listener) {
|
||||
return target.apply(thisArg, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user