diff --git a/client/web/src/App.vue b/client/web/src/App.vue index fec39e78..9cc514e6 100644 --- a/client/web/src/App.vue +++ b/client/web/src/App.vue @@ -76,18 +76,7 @@ img { import { defineComponent } from "vue"; import MainWindow from "./components/window/MainWindow.vue"; -const wasm = import("../wasm/pkg"); - export default defineComponent({ components: { MainWindow }, - created() { - this.greet(); - }, - methods: { - async greet() { - const { greet } = await wasm; - greet("Graphite"); - }, - }, }); diff --git a/client/web/wasm/src/lib.rs b/client/web/wasm/src/lib.rs index acf5fee8..ac6c4edd 100644 --- a/client/web/wasm/src/lib.rs +++ b/client/web/wasm/src/lib.rs @@ -35,8 +35,3 @@ extern "C" { #[wasm_bindgen(catch)] fn handleResponse(responseType: String, responseData: JsValue) -> Result<(), JsValue>; } - -#[wasm_bindgen] -pub fn greet(name: &str) -> String { - format!("Hello, {}!", name) -}