fix(chat): enable in-place subtask navigation in embedded session-chat iframe (#2138)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { isEmbeddedSessionChat } from '@/components/layout/contextPanelEmbeddedChat';
|
||||
|
||||
export const readEmbeddedThemeSearchParams = (): URLSearchParams | null => {
|
||||
if (typeof window === 'undefined') {
|
||||
if (!isEmbeddedSessionChat()) {
|
||||
return null;
|
||||
}
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
return params.get('ocPanel') === 'session-chat' ? params : null;
|
||||
return new URLSearchParams(window.location.search);
|
||||
};
|
||||
|
||||
const getSystemPreference = (): boolean => {
|
||||
|
||||
Reference in New Issue
Block a user