From 5106b9d0c6af11018b958a457f7f4c7d8242e558 Mon Sep 17 00:00:00 2001 From: Kai Hata <36076659+Kaidesuyo@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:03:33 +0800 Subject: [PATCH] docs(localhost): incorrect usage of RemoteDomainAccessScope in README. (#757) * Fix incorrect usage of RemoteDomainAccessScope in README. * Fix incorrect usage of RemoteDomainAccessScope in README. --- plugins/localhost/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/localhost/README.md b/plugins/localhost/README.md index 9eb24df5..f7afb56d 100644 --- a/plugins/localhost/README.md +++ b/plugins/localhost/README.md @@ -42,7 +42,7 @@ fn main() { .plugin(tauri_plugin_localhost::Builder::new(port).build()) .setup(move |app| { app.ipc_scope().configure_remote_access( - RemoteDomainAccessScope::new(format!("localhost:{}", port)) + RemoteDomainAccessScope::new("localhost") .add_window("main") );