FIX: Error calling LazyYT from chat when disabled (#20085)

This commit is contained in:
Jan Cernik 2023-01-30 21:19:04 -03:00 committed by GitHub
parent 33e6140179
commit bb35274984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export default {
}
);
}
if (siteSettings.lazy_yt_enabled) {
api.decorateChatMessage(
(element) => {
element
@ -47,6 +47,7 @@ export default {
id: "lazy-yt",
}
);
}
},
initialize(container) {