diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 31bbc4c3d03..d6228c02f85 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1097,7 +1097,7 @@ impl ScriptThread { pub fn is_user_interacting() -> bool { SCRIPT_THREAD_ROOT.with(|root| { - root.get().map_or(false, |script_thread| { + root.get().is_some_and(|script_thread| { let script_thread = unsafe { &*script_thread }; script_thread.is_user_interacting.get() }) |