diff --git a/src/app.rs b/src/app.rs index 6107110..70f20ca 100644 --- a/src/app.rs +++ b/src/app.rs @@ -80,7 +80,7 @@ pub async fn hide() -> crate::Result<()> { mod inner { use wasm_bindgen::{prelude::wasm_bindgen, JsValue}; - #[wasm_bindgen(module = "/dist/app.js")] + #[wasm_bindgen(module = "/src/app.js")] extern "C" { #[wasm_bindgen(catch)] pub async fn getName() -> Result; diff --git a/src/clipboard.rs b/src/clipboard.rs index 04155f4..e2a9ffb 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -36,7 +36,7 @@ pub async fn write_text(text: &str) -> crate::Result<()> { mod inner { use wasm_bindgen::{prelude::wasm_bindgen, JsValue}; - #[wasm_bindgen(module = "/dist/clipboard.js")] + #[wasm_bindgen(module = "/src/clipboard.js")] extern "C" { #[wasm_bindgen(catch)] pub async fn readText() -> Result; diff --git a/src/event.rs b/src/event.rs index fb89b77..4fc0e7d 100644 --- a/src/event.rs +++ b/src/event.rs @@ -144,7 +144,7 @@ mod inner { JsValue, }; - #[wasm_bindgen(module = "/dist/event.js")] + #[wasm_bindgen(module = "/src/event.js")] extern "C" { #[wasm_bindgen(catch)] pub async fn emit(event: &str, payload: JsValue) -> Result<(), JsValue>; diff --git a/src/mocks.rs b/src/mocks.rs index f8c4877..aa51e9e 100644 --- a/src/mocks.rs +++ b/src/mocks.rs @@ -55,7 +55,7 @@ mod inner { JsValue, }; - #[wasm_bindgen(module = "/dist/mocks.js")] + #[wasm_bindgen(module = "/src/mocks.js")] extern "C" { #[wasm_bindgen(variadic)] pub fn mockWindows(current: &str, rest: JsValue); diff --git a/src/process.rs b/src/process.rs index 0a725d7..8f6effa 100644 --- a/src/process.rs +++ b/src/process.rs @@ -10,7 +10,7 @@ pub fn relaunch() { mod inner { use wasm_bindgen::prelude::wasm_bindgen; - #[wasm_bindgen(module = "/dist/process.js")] + #[wasm_bindgen(module = "/src/process.js")] extern "C" { pub fn exit(exitCode: u32); pub fn relaunch(); diff --git a/src/tauri.rs b/src/tauri.rs index 98654e6..3d484ee 100644 --- a/src/tauri.rs +++ b/src/tauri.rs @@ -95,7 +95,7 @@ pub async fn transform_callback( mod inner { use wasm_bindgen::{prelude::wasm_bindgen, JsValue}; - #[wasm_bindgen(module = "/dist/tauri.js")] + #[wasm_bindgen(module = "/src/tauri.js")] extern "C" { #[wasm_bindgen(catch)] pub async fn convertFileSrc( diff --git a/src/window.rs b/src/window.rs index d0a88bd..9fa4e2b 100644 --- a/src/window.rs +++ b/src/window.rs @@ -626,7 +626,7 @@ mod inner { JsValue, }; - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[derive(Debug, Clone, PartialEq)] pub type LogicalPosition; @@ -642,7 +642,7 @@ mod inner { pub fn set_y(this: &LogicalPosition, y: u32); } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[derive(Debug, Clone, PartialEq)] pub type PhysicalPosition; @@ -660,7 +660,7 @@ mod inner { pub fn set_y(this: &PhysicalPosition, y: u32); } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[derive(Debug, Clone, PartialEq)] pub type LogicalSize; @@ -676,7 +676,7 @@ mod inner { pub fn set_height(this: &LogicalSize, height: u32); } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[derive(Debug, Clone, PartialEq)] pub type PhysicalSize; @@ -694,7 +694,7 @@ mod inner { pub fn set_height(this: &PhysicalSize, height: u32); } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[derive(Debug, Clone, PartialEq)] pub type WebviewWindowHandle; @@ -720,7 +720,7 @@ mod inner { ) -> Result<(), JsValue>; } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[wasm_bindgen(extends = WebviewWindowHandle)] #[derive(Debug, Clone, PartialEq)] @@ -855,7 +855,7 @@ mod inner { pub async fn startDragging(this: &WindowManager) -> Result<(), JsValue>; } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { #[wasm_bindgen(extends = WindowManager)] #[derive(Debug, Clone, PartialEq)] @@ -866,7 +866,7 @@ mod inner { pub fn getByLabel(label: &str) -> Option; } - #[wasm_bindgen(module = "/dist/window.js")] + #[wasm_bindgen(module = "/src/window.js")] extern "C" { pub fn getCurrent() -> WebviewWindow; pub fn getAll() -> Vec;