Skip to content

Commit 87d5af3

Browse files
authored
Merge pull request #307 from zhangxichang/agent/agent/8598471a
fix(wasm): 修复登录后浏览器控制台报错
2 parents 9902176 + b26e082 commit 87d5af3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/.virtual_documents/
99
/test-results/
1010
/playwright-report/
11+
/.playwright-mcp/
1112
/.sisyphus/
1213

1314
/public/db_schema.sql

crates/endpoint/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ serde_json = "1.0.149"
1919
rand = "0.10.1"
2020

2121
[target.'cfg(target_family = "wasm")'.dependencies]
22-
iroh = { version = "0.98.2", default-features = false }
22+
iroh = { version = "0.98.2", default-features = false, features = ["tls-ring"] }
2323
iroh-gossip = { version = "0.98.0", default-features = false, features = [
2424
"net",
2525
] }

crates/endpoint/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Endpoint {
6060
);
6161
}
6262
#[allow(unused_mut)]
63-
let mut endpoint_builder = iroh::endpoint::Builder::empty()
63+
let mut endpoint_builder = iroh::endpoint::Builder::new(iroh::endpoint::presets::Minimal)
6464
.relay_mode(RelayMode::Custom(relay_map))
6565
.address_lookup(PkarrPublisher::n0_dns())
6666
.address_lookup(PkarrResolver::n0_dns());

0 commit comments

Comments
 (0)