mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 03:36:40 +00:00
7 lines
459 B
TypeScript
7 lines
459 B
TypeScript
// refer - https://stackoverflow.com/a/11752084
|
|
export const isMac = () => /Mac/i.test(navigator.platform)
|
|
export const isDrawerExist = () => document.querySelector('.ant-drawer-open')
|
|
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer-open')
|
|
export const isExpandedCellInputExist = () => document.querySelector('.expanded-cell-input')
|
|
export const cmdKActive = () => document.querySelector('.cmdk-modal-active')
|