Remove unused javascript (#2470)
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run

This commit is contained in:
Ajay Bura 2025-08-29 15:04:52 +05:30 committed by GitHub
parent 399b1a373e
commit 90ca8ca2c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
214 changed files with 341 additions and 8768 deletions

View file

@ -56,7 +56,6 @@ import { roomToUnreadAtom } from '../../state/room/roomToUnread';
import { UnreadBadge, UnreadBadgeCenter } from '../../components/unread-badge';
import { searchModalAtom } from '../../state/searchModal';
import { useKeyDown } from '../../hooks/useKeyDown';
import navigation from '../../../client/state/navigation';
import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
import { KeySymbol } from '../../utils/key-symbol';
import { isMacOS } from '../../utils/user-agent';
@ -436,11 +435,8 @@ export function SearchModalRenderer() {
}
// means some menu or modal window is open
const { lastChild } = document.body;
if (
(lastChild && 'className' in lastChild && lastChild.className !== 'ReactModalPortal') ||
navigation.isRawModalVisible
) {
const lastNode = document.body.lastElementChild;
if (lastNode && !lastNode.hasAttribute('data-last-node')) {
return;
}
setOpen(true);