From 89e1b2f91feeb7c3b730edf883820f58e329d6eb Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 8 Jun 2021 18:05:38 -0600 Subject: [PATCH] ui: web-view: set debug mode on debug build --- src/frontend/ui/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/ui/mod.rs b/src/frontend/ui/mod.rs index 4a9847f..852f5f4 100644 --- a/src/frontend/ui/mod.rs +++ b/src/frontend/ui/mod.rs @@ -26,7 +26,7 @@ pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) { .content(Content::Url(http_address)) .size(size.0, size.1) .resizable(false) - .debug(false) + .debug(cfg!(debug_assertions)) .user_data(()) .invoke_handler(|wv, msg| { let mut cb_result = Ok(());