You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
319 B
16 lines
319 B
7 years ago
|
import enquireJs from 'enquire.js'
|
||
|
|
||
|
const enquireScreen = function (call) {
|
||
|
const hanlder = {
|
||
|
match: function () {
|
||
|
call && call(true)
|
||
|
},
|
||
|
unmatch: function () {
|
||
|
call && call(false)
|
||
|
}
|
||
|
}
|
||
|
enquireJs.register('only screen and (max-width: 767.99px)', hanlder)
|
||
|
}
|
||
|
|
||
|
export default enquireScreen
|