Resolved performance issues

This commit is contained in:
larley
2024-10-24 22:30:43 +02:00
committed by GitHub
parent fd50b00a76
commit 842b49fea9

View File

@@ -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);
});
}
})();
})();