mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-07 23:30:45 -04:00
Merge pull request #1162 from daslyfe/cors_pathname_issue
[CORS HOTFIX]
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