File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
frontend/src/components/chat/code-engine Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,10 @@ export function setupIframeComm(iframe: HTMLIFrameElement) {
111
111
if ( iframe . contentDocument ) {
112
112
// Check if customInspector.js is already loaded
113
113
if (
114
- ! iframe . contentDocument . querySelector (
114
+ iframe . contentDocument . querySelector (
115
115
'script[src*="customInspector.js"]'
116
116
)
117
117
) {
118
- const script = document . createElement ( 'script' ) ;
119
- script . src = '/customInspector.js' ; // Assumes the script is in the public directory
120
- iframe . contentDocument . head . appendChild ( script ) ;
121
- console . log ( 'Injected custom inspector script' ) ;
122
- } else {
123
118
console . log ( 'Custom inspector script already loaded' ) ;
124
119
}
125
120
} else {
You can’t perform that action at this time.
0 commit comments