mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-25 13:10:34 +08:00
chore: setIsReady when port disconnect
This commit is contained in:
@@ -115,6 +115,7 @@ function ConversationCard(props) {
|
||||
useEffect(() => {
|
||||
const listener = () => {
|
||||
setPort(Browser.runtime.connect())
|
||||
setIsReady(true)
|
||||
}
|
||||
port.onDisconnect.addListener(listener)
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user