From c429bb1e2dcfffb1fdb6533b7e1971b8a21d2915 Mon Sep 17 00:00:00 2001 From: Mohamed Dardouri Date: Sun, 17 Nov 2024 16:13:50 +0100 Subject: [PATCH 1/2] publish ZOME_CALL_SIGNER_INITIALIZATION_SCRIPT (cherry picked from commit 47013fefba716a8b82b25bbd3964c1818ae01d4e) --- crates/tauri-plugin-holochain/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tauri-plugin-holochain/src/lib.rs b/crates/tauri-plugin-holochain/src/lib.rs index dffe0838..56c9b369 100644 --- a/crates/tauri-plugin-holochain/src/lib.rs +++ b/crates/tauri-plugin-holochain/src/lib.rs @@ -25,7 +25,7 @@ pub use error::{Error, Result}; use hc_live_file::*; pub use holochain_runtime::*; -const ZOME_CALL_SIGNER_INITIALIZATION_SCRIPT: &'static str = include_str!("../zome-call-signer.js"); +pub const ZOME_CALL_SIGNER_INITIALIZATION_SCRIPT: &'static str = include_str!("../zome-call-signer.js"); /// Access to the holochain APIs. pub struct HolochainPlugin { From dea1d658c0906b7113a20061c5eec816d3b70c1b Mon Sep 17 00:00:00 2001 From: Mohamed Dardouri Date: Mon, 25 Nov 2024 12:32:20 +0100 Subject: [PATCH 2/2] make get_allowed_origins public --- crates/tauri-plugin-holochain/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tauri-plugin-holochain/src/lib.rs b/crates/tauri-plugin-holochain/src/lib.rs index 56c9b369..814ce3b9 100644 --- a/crates/tauri-plugin-holochain/src/lib.rs +++ b/crates/tauri-plugin-holochain/src/lib.rs @@ -176,7 +176,7 @@ impl HolochainPlugin { Ok(admin_ws) } - fn get_allowed_origins(&self, + pub fn get_allowed_origins(&self, app_id: &InstalledAppId, main_window: bool ) -> AllowedOrigins {