Move CSS check up

5c7b95cc152482632fdd4cff3ca23e508a0728e9

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -4Ignore whitespace
public/scripts/group-chats.js+4 -4
@@ -1966,11 +1966,11 @@ function doCurMemberListPopout() {
1966}1966}
19671967
1968jQuery(() => {1968jQuery(() => {
1969 $(document).on('input', '#rm_group_chats_block .autoSetHeight', function () {1969 if (!CSS.supports('field-sizing', 'content')) {
1970 if (!CSS.supports('field-sizing', 'content')) {1970 $(document).on('input', '#rm_group_chats_block .autoSetHeight', function () {
1971 resetScrollHeight($(this));1971 resetScrollHeight($(this));
1972 }1972 });
1973 });1973 }
19741974
1975 $(document).on('click', '.group_select', function () {1975 $(document).on('click', '.group_select', function () {
1976 const groupId = $(this).attr('chid') || $(this).attr('grid') || $(this).data('id');1976 const groupId = $(this).attr('chid') || $(this).attr('grid') || $(this).data('id');