check iframe
This commit is contained in:
parent
d850726910
commit
926c893c4f
1 changed files with 5 additions and 1 deletions
|
|
@ -135,7 +135,11 @@ export async function shareCode(codeToShare) {
|
|||
export const ReplContext = createContext(null);
|
||||
|
||||
export const isUdels = () => {
|
||||
return window.parent?.location.pathname.includes('udels');
|
||||
const isIframe = window.location !== window.parent.location;
|
||||
if (isIframe) {
|
||||
return false
|
||||
}
|
||||
return window.parent?.location?.pathname.includes('udels');
|
||||
};
|
||||
|
||||
export const getAudioDevices = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue