use super::*;
thread_local! {
pub(crate) static WEB_PROMISE_NOOP_REJECT: Closure<dyn FnMut(JsValue)> =
Closure::wrap(Box::new(|_: JsValue| {}) as Box<dyn FnMut(JsValue)>);
pub(crate) static WEB_DEVICE_MOTION_STATE: RefCell<WebDeviceMotionState> =
RefCell::new(WebDeviceMotionState {
listeners_attached: false,
has_motion_event: false,
orient_gravity_dev: None,
last_yaw_rad: 0.0,
filtered_gravity_dev: None,
gravity_sign: -1.0,
has_pending_sample: false,
pending_sample: DeviceMotionSample::upright(),
});
}