mirror of
https://github.com/DevLARLEY/WidevineProxy2.git
synced 2026-04-02 10:39:02 +00:00
Resolved performance issues
This commit is contained in:
@@ -61,7 +61,7 @@ function getEventListeners(type) {
|
||||
const listeners = store[type];
|
||||
|
||||
let wrappedListener = listener;
|
||||
if (!!listener && !listener._isWrapped) {
|
||||
if (type === "message" && !!listener && !listener._isWrapped) {
|
||||
wrappedListener = async function(event) {
|
||||
if (event instanceof MediaKeyMessageEvent) {
|
||||
if (event._isCustomEvent) {
|
||||
@@ -146,4 +146,4 @@ function getEventListeners(type) {
|
||||
return await _target.apply(_this, _args);
|
||||
});
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user