update path
This commit is contained in:
@ -10,7 +10,7 @@ const root = ReactDOM.createRoot(
|
|||||||
);
|
);
|
||||||
root.render(
|
root.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<HashRouter basename="">
|
<HashRouter basename="/">
|
||||||
<App />
|
<App />
|
||||||
</HashRouter>
|
</HashRouter>
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
|
|||||||
@ -120,10 +120,12 @@ function CodeEditor() {
|
|||||||
iframeRef.current?.contentWindow?.removeEventListener('mousemove', handleMouseMove);
|
iframeRef.current?.contentWindow?.removeEventListener('mousemove', handleMouseMove);
|
||||||
iframeRef.current?.contentWindow?.removeEventListener('mouseup', handleMouseUp);
|
iframeRef.current?.contentWindow?.removeEventListener('mouseup', handleMouseUp);
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [iframeRef.current])
|
}, [iframeRef.current])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getCode(url);
|
getCode(url);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [url])
|
}, [url])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user