1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-07 14:35:26 +02:00

Added constraints for parent element

This commit is contained in:
DorofeevMark 2019-03-15 13:53:23 +03:00
parent 3e8b77f94c
commit 623b180fcc

View file

@ -13,6 +13,9 @@ export default class Extensions {
this.misprints = new Misprints({
chatId: window.config.misprintsChatId
});
this.reactions = new Reactions(window.config.reactions);
if (document.querySelector(window.config.reactions.parent)) {
this.reactions = new Reactions(window.config.reactions);
}
}
}