♻️ Use of "target_family" instead of feature to manage wasm platform
This commit is contained in:
@@ -16,13 +16,13 @@ use tracing_subscriber::prelude::*;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "desktop")] {
|
||||
if #[cfg(target_family = "wasm")] {
|
||||
use tracing_web::MakeWebConsoleWriter;
|
||||
} else {
|
||||
use dioxus::desktop::Config;
|
||||
use std::fs::File;
|
||||
use time::format_description::well_known::Iso8601;
|
||||
use tracing_subscriber::fmt::time::UtcTime;
|
||||
} else if #[cfg(feature = "web")] {
|
||||
use tracing_web::MakeWebConsoleWriter;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user