cleanup is_mobile method
This commit is contained in:
parent
40f070c726
commit
21a586913a
@ -87,14 +87,9 @@ lazy_static::lazy_static! {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
const IS_MOBILE: bool = false;
|
||||
|
||||
#[inline]
|
||||
pub fn is_mobile() -> bool {
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
return *IS_MOBILE;
|
||||
pub fn is_mobile() -> bool { return *IS_MOBILE; }
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
return IS_MOBILE;
|
||||
}
|
||||
pub const fn is_mobile() -> bool { return false; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user