docs(localhost): incorrect usage of RemoteDomainAccessScope in README. (#757)

* Fix incorrect usage of RemoteDomainAccessScope in README.

* Fix incorrect usage of RemoteDomainAccessScope in README.
This commit is contained in:
Kai Hata
2023-11-23 18:03:33 +08:00
committed by GitHub
parent 0864c54147
commit 5106b9d0c6
+1 -1
View File
@@ -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")
);