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

* Fix incorrect usage of RemoteDomainAccessScope in README.

* Fix incorrect usage of RemoteDomainAccessScope in README.
pull/760/head
Kai Hata 2 years ago committed by GitHub
parent 0864c54147
commit 5106b9d0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")
);

Loading…
Cancel
Save