mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix register of undefined, #8249
This commit is contained in:
parent
b6c6ee8f3e
commit
b075aa606e
@ -97,6 +97,9 @@ export function loadScript(src) {
|
||||
export function enquireScreen(cb) {
|
||||
/* eslint-disable no-unused-expressions */
|
||||
// and (min-width: 320px)
|
||||
if (!enquire) {
|
||||
return;
|
||||
}
|
||||
enquire.register('only screen and (max-width: 768px)', {
|
||||
match: () => {
|
||||
cb && cb(true);
|
||||
|
Loading…
Reference in New Issue
Block a user