diff --git a/MoonZoon.toml b/MoonZoon.toml index d06702c..d23184d 100644 --- a/MoonZoon.toml +++ b/MoonZoon.toml @@ -25,6 +25,7 @@ frontend = [ backend = [ "backend/Cargo.toml", "backend/src", + "backend/globals.js", "backend/index.js", "backend/style.css", ] diff --git a/backend/globals.js b/backend/globals.js new file mode 100644 index 0000000..5e5189d --- /dev/null +++ b/backend/globals.js @@ -0,0 +1 @@ +var process = { env: { IS_PREACT: "false" } }; diff --git a/backend/index.js b/backend/index.js index b1896bc..7abc7b8 100644 --- a/backend/index.js +++ b/backend/index.js @@ -1,2 +1,3 @@ import { FW } from '/_api/pkg/frontend.js'; window.FW = FW; + diff --git a/backend/src/main.rs b/backend/src/main.rs index c9df718..36e3a05 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -5,6 +5,11 @@ async fn frontend() -> Frontend { .title("FastWave") .append_to_head(include_str!("../favicon.html")) // realfavicongenerator.net .append_to_head(concat!("")) + .append_to_head(concat!( + "" + )) .append_to_head(concat!( "