mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
Merge pull request #1162 from daslyfe/cors_pathname_issue
[CORS HOTFIX]
This commit is contained in:
commit
9d1674b13c
@ -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…
x
Reference in New Issue
Block a user