ui: web-view: set debug mode on debug build

This commit is contained in:
liushuyu 2021-06-08 18:05:38 -06:00
parent f13b2fe93d
commit 89e1b2f91f
No known key found for this signature in database
GPG key ID: 23D1CE4534419437

View file

@ -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(());