From ce4eef64cdde5f3e5809c963a1d84c933d27e7ae Mon Sep 17 00:00:00 2001
From: Héctor Ramón Jiménez <hector@hecrj.dev>
Date: Thu, 22 Feb 2024 09:24:13 +0100
Subject: Enable layout debugger for Wasm builds in `tour` example

---
 examples/tour/src/main.rs | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'examples')

diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 588abbe8..1e2f1ef8 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -643,17 +643,10 @@ impl<'a> Step {
                 "Give it a shot! Check the following checkbox to be able to \
                  see element boundaries.",
             )
-            .push(if cfg!(target_arch = "wasm32") {
-                Element::new(
-                    text("Not available on web yet!")
-                        .style(Color::from([0.7, 0.7, 0.7]))
-                        .horizontal_alignment(alignment::Horizontal::Center),
-                )
-            } else {
+            .push(
                 checkbox("Explain layout", debug)
-                    .on_toggle(StepMessage::DebugToggled)
-                    .into()
-            })
+                    .on_toggle(StepMessage::DebugToggled),
+            )
             .push("Feel free to go back and take a look.")
     }
 
-- 
cgit