fix: set iframe ref
This commit is contained in:
parent
0f249cc28d
commit
4544e80eb1
|
@ -206,6 +206,7 @@ export function Browser() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<iframe
|
<iframe
|
||||||
|
ref={iframeRef}
|
||||||
onLoad={handleIframeLoad}
|
onLoad={handleIframeLoad}
|
||||||
src={url ? `/browse/${url}` : "about:blank"}
|
src={url ? `/browse/${url}` : "about:blank"}
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
|
|
Loading…
Reference in New Issue