feat(nc-gui): add isDrawerExist

This commit is contained in:
Wing-Kam Wong
2022-12-02 16:20:52 +08:00
parent a3b7a6ab74
commit 7e4e089763

View File

@@ -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')