From: riqo Date: Sat, 10 Oct 2020 16:33:53 +0000 (-0500) Subject: fix ts messageItem X-Git-Tag: v0.9~143^2~2^2~5 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=8d8cda2f03bcacc0c16aecced15ce29a4d81d166;p=mime-chat fix ts messageItem --- diff --git a/crate/src/utils.rs b/crate/src/utils.rs index e69de29..b1d7929 100644 --- a/crate/src/utils.rs +++ b/crate/src/utils.rs @@ -0,0 +1,10 @@ +pub fn set_panic_hook() { + // When the `console_error_panic_hook` feature is enabled, we can call the + // `set_panic_hook` function at least once during initialization, and then + // we will get better error messages if our code ever panics. + // + // For more details see + // https://github.com/rustwasm/console_error_panic_hook#readme + #[cfg(feature = "console_error_panic_hook")] + console_error_panic_hook::set_once(); +} diff --git a/src/components/UI/UIDetails/messageItem.vue b/src/components/UI/UIDetails/messageItem.vue index d6c572c..aee763f 100644 --- a/src/components/UI/UIDetails/messageItem.vue +++ b/src/components/UI/UIDetails/messageItem.vue @@ -54,7 +54,7 @@ diff --git a/src/components/UI/index.vue b/src/components/UI/index.vue index b62d09b..722b7de 100644 --- a/src/components/UI/index.vue +++ b/src/components/UI/index.vue @@ -84,7 +84,7 @@