fix lookup instance
This commit is contained in:
parent
2d03d61ac8
commit
07b9e17665
|
@ -9,9 +9,7 @@ export async function lookupInstance() {
|
||||||
|
|
||||||
os.api(
|
os.api(
|
||||||
"federation/show-instance",
|
"federation/show-instance",
|
||||||
q.startsWith("http://") || q.startsWith("https://")
|
q.startsWith("http://") || q.startsWith("https://") ? { host: q.replace("https://", "") } : { host: q }
|
||||||
? { url: q.trim() }
|
|
||||||
: { fileId: q.trim() },
|
|
||||||
)
|
)
|
||||||
.then((instance) => {
|
.then((instance) => {
|
||||||
os.pageWindow(`/instance-info/${instance.host}`);
|
os.pageWindow(`/instance-info/${instance.host}`);
|
||||||
|
|
Loading…
Reference in New Issue