Closed
Description
Context
We switched to loading Web UI from IPFS in #680.
Blessed CID is hardcoded in extension sources:
Problem
@Mikaela noted interesting problem:
Should the webui get automatically pinned or something? I have gc enabled on go-ipfs
I am wondering what happens if I get disconnected for two hours or so, will I lose the webui?
Solution
ipfs-companion should:
- keep current
webuiCid
pinned- check could happen every time remote API is connected to for the first time in browsing session
- when
webuiCid
changes, unpin old version and pin new one- relevant API:
browser.runtime.onInstalled
withOnInstalledReason
- relevant API: