You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/ruffle/web/common/src
    
    the code of the file until where you have to start completion: //! Utility functions for the web backend.
use wasm_bindgen::JsValue;

#[derive(Debug)]
pub struct JsError {
    value: JsValue,
}

impl std::fmt::Display for JsError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> Resu
    
pub fn is_mobile_or_tablet() -> bool {
    if let Some(window) = web_sys::window() {
        if let Ok(val) = js_sys::Reflect::get(&window, &JsValue::from("orientation")) {
            return !val.is_undefined();
        }
    }

    false
}