Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to webui.ipfs.tech #1320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion add-on/src/lib/ipfs-client/reloaders/webUiReloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions add-on/src/lib/precache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <api-port>/webui
cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname
name = `stable webui hardcoded at ${state.apiURLString}webui`
Expand Down
2 changes: 1 addition & 1 deletion add-on/src/lib/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
})
Expand Down
Loading