mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-01 05:27:18 -04:00
check iframe
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user