diff --git a/src/rt/detect.rs b/src/rt/detect.rs
index b2b6af2..89ef0bd 100644
--- a/src/rt/detect.rs
+++ b/src/rt/detect.rs
@@ -2,6 +2,7 @@
 
 use alloc::string::String;
 use wasm_bindgen::prelude::*;
+use wasm_bindgen::JsCast;
 
 #[wasm_bindgen]
 extern "C" {
