Browse Source

feat(nc-gui): add isDrawerExist

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

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

@ -1,3 +1,4 @@
// 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')

Loading…
Cancel
Save