mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
chore: use react-grab to replace code-inspector-plugin (#33078)
This commit is contained in:
17
web/app/components/devtools/react-grab/loader.tsx
Normal file
17
web/app/components/devtools/react-grab/loader.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import Script from 'next/script'
|
||||
import { IS_DEV } from '@/config'
|
||||
|
||||
export function ReactGrabLoader() {
|
||||
if (!IS_DEV)
|
||||
return null
|
||||
|
||||
return (
|
||||
<>
|
||||
<Script
|
||||
src="//unpkg.com/react-grab/dist/index.global.js"
|
||||
crossOrigin="anonymous"
|
||||
strategy="beforeInteractive"
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user