feat: center chat modal attr

This commit is contained in:
Barış Soner Uşaklı
2023-05-16 10:30:56 -04:00
parent 65ee7d856f
commit 4833a2b90c

View File

@@ -389,6 +389,10 @@ define('chat', [
}; };
module.center = function (chatModal) { module.center = function (chatModal) {
const center = chatModal.attr('data-center');
if (!center || center === 'false') {
return;
}
let hideAfter = false; let hideAfter = false;
if (chatModal.hasClass('hide')) { if (chatModal.hasClass('hide')) {
chatModal.removeClass('hide'); chatModal.removeClass('hide');