From 8d8cda2f03bcacc0c16aecced15ce29a4d81d166 Mon Sep 17 00:00:00 2001 From: riqo Date: Sat, 10 Oct 2020 11:33:53 -0500 Subject: [PATCH] fix ts messageItem --- crate/src/utils.rs | 10 ++ src/components/UI/UIDetails/messageItem.vue | 156 ++++++++++++-------- src/components/UI/index.vue | 6 +- tsconfig.json | 1 + 4 files changed, 106 insertions(+), 67 deletions(-) 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 @@