ipfs / ipfs-companion

Browser extension that simplifies access to IPFS resources on the web
https://docs.ipfs.tech/install/ipfs-companion/
Creative Commons Zero v1.0 Universal
2.05k stars 325 forks source link

fix: ipfs.dns → ipfs.resolve #1302

Closed lidel closed 8 months ago

lidel commented 11 months ago

This PR aims to fix webui preload in Kubo 0.24.

Context: ipfs.dns has been deprecated for a while, and the way we use it here got broken in Kubo 0.24: https://github.com/ipfs/kubo/pull/10212

lidel commented 11 months ago

@SgtPooki pushed fix, /api/v0/resolve is now called with /ipns path, and that returns resolved one that is used for preload:

2023-11-09_00-57

But it does not really matter, even if that failed in Kubo 0.24, the fallback based on pathname detection still works and preloads ok:

2023-11-09_00-56