Skip to content

Commit 659b797

Browse files
authored
refactor: ipfs.dns → ipfs.resolve (#1302)
ipfs.dns is deprecated, and broken in Kubo 0.24: ipfs/kubo#10212
1 parent 6f17967 commit 659b797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-on/src/lib/precache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function precache (ipfs, state) {
1515
try {
1616
let cid, name
1717
if (state.useLatestWebUI) { // resolve DNSLink
18-
cid = await ipfs.dns('webui.ipfs.io', { recursive: true })
18+
cid = await ipfs.resolve('/ipns/webui.ipfs.io', { recursive: true })
1919
name = 'latest webui from DNSLink at webui.ipfs.io'
2020
} else { // find out safelisted path behind <api-port>/webui
2121
cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname

0 commit comments

Comments
 (0)