mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-08 09:52:26 +08:00
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
export let supportsPassive = false
|
|
try {
|
|
const opts = {}
|
|
Object.defineProperty(opts, 'passive', ({
|
|
get () {
|
|
/* istanbul ignore next */
|
|
supportsPassive = true
|
|
}
|
|
})) // https://github.com/facebook/flow/issues/285
|
|
window.addEventListener('test-passive', null, opts)
|
|
} catch (e) {}
|