From b420cc742a4af63f5e0cfa378b8f9551f5d3afc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Tue, 30 Jan 2024 10:50:10 +0100 Subject: [PATCH] Minor change --- src/use_device_orientation.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/use_device_orientation.rs b/src/use_device_orientation.rs index 7db7869..97a3d0e 100644 --- a/src/use_device_orientation.rs +++ b/src/use_device_orientation.rs @@ -42,11 +42,10 @@ pub fn use_device_orientation() -> UseDeviceOrientationReturn { let gamma = || None; } else { use crate::{use_event_listener_with_options, UseEventListenerOptions}; - use js_sys::Reflect; use leptos::ev::deviceorientation; use wasm_bindgen::JsValue; - let is_supported = Signal::derive(|| Reflect::has( + let is_supported = Signal::derive(|| js_sys::Reflect::has( &window(), &JsValue::from_str("DeviceOrientationEvent"), ).unwrap_or(false));