mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Correct definitions of is_browser
and is_server
This commit is contained in:
parent
a7a35857bb
commit
21178b1682
1 changed files with 2 additions and 2 deletions
|
@ -612,7 +612,7 @@ pub fn document() -> web_sys::Document {
|
|||
/// };
|
||||
/// ```
|
||||
pub const fn is_server() -> bool {
|
||||
cfg!(all(target_arch = "wasm32", feature = "web"))
|
||||
!is_browser()
|
||||
}
|
||||
|
||||
/// Returns true if running on the browser (CSR).
|
||||
|
@ -626,7 +626,7 @@ pub const fn is_server() -> bool {
|
|||
/// };
|
||||
/// ```
|
||||
pub const fn is_browser() -> bool {
|
||||
!is_server()
|
||||
cfg!(all(target_arch = "wasm32", feature = "web"))
|
||||
}
|
||||
|
||||
/// Returns true if `debug_assertions` are enabled.
|
||||
|
|
Loading…
Reference in a new issue