mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 18:50:29 +03:00
Remove unused javascript (#2470)
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run
This commit is contained in:
parent
399b1a373e
commit
90ca8ca2c5
214 changed files with 341 additions and 8768 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue