feat: append ?embedded=1 to VIM iframe URL
This commit is contained in:
@@ -27,10 +27,12 @@ export function VisualCopilotModule({ url }: VisualCopilotModuleProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const embeddedUrl = url.includes('?') ? `${url}&embedded=1` : `${url}?embedded=1`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative h-full w-full">
|
<div className="relative h-full w-full">
|
||||||
<iframe
|
<iframe
|
||||||
src={url}
|
src={embeddedUrl}
|
||||||
className="h-full w-full border-0"
|
className="h-full w-full border-0"
|
||||||
title="Visual CoPilot"
|
title="Visual CoPilot"
|
||||||
allow="fullscreen"
|
allow="fullscreen"
|
||||||
|
|||||||
Reference in New Issue
Block a user