diff --git a/add-on/src/lib/ipfs-client/reloaders/webUiReloader.js b/add-on/src/lib/ipfs-client/reloaders/webUiReloader.js index 0e304ac9a..484ec3a1c 100644 --- a/add-on/src/lib/ipfs-client/reloaders/webUiReloader.js +++ b/add-on/src/lib/ipfs-client/reloaders/webUiReloader.js @@ -9,7 +9,7 @@ export default class WebUiReloader extends ReloaderBase { */ validation ({ url }) { const bundled = !url.startsWith('http') && url.includes('/webui/index.html#/') - const ipns = url.includes('/webui.ipfs.io/#/') + const ipns = url.includes('/webui.ipfs.tech/#/') return bundled || ipns } diff --git a/add-on/src/lib/precache.js b/add-on/src/lib/precache.js index 11d8837ec..db688ce3b 100644 --- a/add-on/src/lib/precache.js +++ b/add-on/src/lib/precache.js @@ -15,8 +15,8 @@ export async function precache (ipfs, state) { try { let cid, name if (state.useLatestWebUI) { // resolve DNSLink - cid = await ipfs.resolve('/ipns/webui.ipfs.io', { recursive: true }) - name = 'latest webui from DNSLink at webui.ipfs.io' + cid = await ipfs.resolve('/ipns/webui.ipfs.tech', { recursive: true }) + name = 'latest webui from DNSLink at webui.ipfs.tech' } else { // find out safelisted path behind /webui cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname name = `stable webui hardcoded at ${state.apiURLString}webui` diff --git a/add-on/src/lib/state.js b/add-on/src/lib/state.js index 860fb689a..f3bdd706b 100644 --- a/add-on/src/lib/state.js +++ b/add-on/src/lib/state.js @@ -63,7 +63,7 @@ export function initState (options, overrides) { Object.defineProperty(state, 'webuiRootUrl', { get: function () { // Did user opt-in for rolling release published on DNSLink? - if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.io/` + if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.tech/` return `${state.apiURLString}webui` } })