Browse Source

feat(nc-gui): check active drawer or modal only

pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
ab88c3fba6
  1. 2
      packages/nc-gui/utils/browserUtils.ts

2
packages/nc-gui/utils/browserUtils.ts

@ -1,3 +1,3 @@
// refer - https://stackoverflow.com/a/11752084
export const isMac = () => /Mac/i.test(navigator.platform)
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal, .ant-drawer')
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer.active')

Loading…
Cancel
Save