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 (
|
||||
<div className="relative h-full w-full">
|
||||
<iframe
|
||||
src={url}
|
||||
src={embeddedUrl}
|
||||
className="h-full w-full border-0"
|
||||
title="Visual CoPilot"
|
||||
allow="fullscreen"
|
||||
|
||||
Reference in New Issue
Block a user