File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
components/ConversationCard Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ function ConversationCard(props) {
454
454
Browser . runtime . sendMessage ( {
455
455
type : 'OPEN_URL' ,
456
456
data : {
457
- url : Browser . runtime . getURL ( 'IndependentPanel.html' ) ,
457
+ url : Browser . runtime . getURL ( 'IndependentPanel.html' ) + '?from=store' ,
458
458
} ,
459
459
} ) ,
460
460
)
Original file line number Diff line number Diff line change @@ -49,8 +49,13 @@ function App() {
49
49
useEffect ( ( ) => {
50
50
// eslint-disable-next-line
51
51
; ( async ( ) => {
52
+ const urlFrom = new URLSearchParams ( window . location . search ) . get ( 'from' )
52
53
const sessions = await getSessions ( )
53
- if ( sessions [ 0 ] . conversationRecords && sessions [ 0 ] . conversationRecords . length > 0 ) {
54
+ if (
55
+ urlFrom !== 'store' &&
56
+ sessions [ 0 ] . conversationRecords &&
57
+ sessions [ 0 ] . conversationRecords . length > 0
58
+ ) {
54
59
await createNewChat ( )
55
60
} else {
56
61
setSessions ( sessions )
You can’t perform that action at this time.
0 commit comments