fix: put browse prefix direct in the iframe
This commit is contained in:
parent
e7c40cdf32
commit
f558399da4
|
@ -147,7 +147,7 @@ export function Navigator() {
|
||||||
const url = new URL(input);
|
const url = new URL(input);
|
||||||
|
|
||||||
setUrl(
|
setUrl(
|
||||||
`/browse/${url.hostname}${url.pathname}${url.search}${url.hash}` ||
|
`${url.hostname}${url.pathname}${url.search}${url.hash}` ||
|
||||||
"about:blank",
|
"about:blank",
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -190,5 +190,5 @@ export function Browser() {
|
||||||
boot(status, auth);
|
boot(status, auth);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <iframe src={url} className="w-full h-full"></iframe>;
|
return <iframe src={`/browse/${url}`} className="w-full h-full"></iframe>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue