We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 945cc4c commit a2181f4Copy full SHA for a2181f4
2 files changed
index.html
@@ -222,6 +222,12 @@
222
.bottom-left-icons:hover .icon-link {
223
border-radius: 12px 12px 0 12px;
224
}
225
+
226
+ .error {
227
+ padding-top: 10px;
228
+ font-size: small;
229
+ opacity: 0.6;
230
+ }
231
</style>
232
</head>
233
src/main.rs
@@ -64,8 +64,12 @@ fn start_app() {
64
loading_text.remove();
65
66
Err(e) => {
67
- loading_text
68
- .set_inner_html(&format!("<p> The app has crashed. Error: {e:#?} </p>"));
+ use web_sys::js_sys::JsString;
69
+ loading_text.set_inner_html(&format!(
70
+ "<div> Please enable WebGPU and hardware acceleration in your browser :) </div> <div class=\"error\"> Error: {} </div>",
71
+ std::convert::Into::<JsString>::into(e.clone())
72
+ ));
73
panic!("Failed to start eframe: {e:?}");
74
75
0 commit comments