1
0
Evan Almloff 1 жил өмнө
parent
commit
3afb313110

+ 8 - 2
packages/desktop/src/protocol.rs

@@ -47,7 +47,10 @@ pub(super) fn desktop_handler(
         // we'll look for the closing </body> tag and insert our little module loader there.
         let body = match custom_index {
             Some(custom_index) => custom_index
-                .replace("</body>", &format!("{}</body>", module_loader(root_name, headless)))
+                .replace(
+                    "</body>",
+                    &format!("{}</body>", module_loader(root_name, headless)),
+                )
                 .into_bytes(),
 
             None => {
@@ -59,7 +62,10 @@ pub(super) fn desktop_handler(
                 }
 
                 template
-                    .replace("<!-- MODULE LOADER -->", &module_loader(root_name, headless))
+                    .replace(
+                        "<!-- MODULE LOADER -->",
+                        &module_loader(root_name, headless),
+                    )
                     .into_bytes()
             }
         };

+ 1 - 1
packages/desktop/src/webview.rs

@@ -56,7 +56,7 @@ pub(crate) fn build(
                     index_file.clone(),
                     &root_name,
                     &edit_queue,
-                    headless
+                    headless,
                 )
             }
         })