> = OnceCell::new();
}
/// Initialize the backend
@@ -41,11 +39,12 @@ pub fn panic_hook(info: &panic::PanicInfo) {
error!("{info}");
- JS_EDITOR_HANDLES.with(|instances| {
- instances
- .borrow_mut()
- .values_mut()
- .for_each(|instance| instance.send_frontend_message_to_js_rust_proxy(FrontendMessage::DisplayDialogPanic { panic_info: info.to_string() }))
+ EDITOR_HANDLE.with(|editor_handle| {
+ editor_handle.get().map(|handle| {
+ handle
+ .borrow_mut()
+ .send_frontend_message_to_js_rust_proxy(FrontendMessage::DisplayDialogPanic { panic_info: info.to_string() })
+ })
});
}
diff --git a/website/content/features.md b/website/content/features.md
index 750d814a..693ece1d 100644
--- a/website/content/features.md
+++ b/website/content/features.md
@@ -126,17 +126,17 @@ Always on the bleeding edge and built to last— Graphite is written on a robust
Imaginate (Stable Diffusion node/tool)
+
-
-
+
-
+