Skip to content

Change " location.* " references to use " new URL(document.baseURI).* " instead#3904

Open
KevinBrogan wants to merge 1 commit intoFredKSchott:mainfrom
KevinBrogan:main
Open

Change " location.* " references to use " new URL(document.baseURI).* " instead#3904
KevinBrogan wants to merge 1 commit intoFredKSchott:mainfrom
KevinBrogan:main

Conversation

@KevinBrogan
Copy link

document.baseURI is still valid inside of a srcdoc iframe where as location is set to 'about:srcdoc' which is not useful.

Fixes: #3903

Tested on Windows 10 - Chrome 101.0.4951.54

… " instead.

document.baseURI is still valid inside of a srcdoc iframe where as location is set to 'about:srcdoc' which is not useful.
@vercel
Copy link

vercel bot commented May 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
snowpack ✅ Ready (Inspect) Visit Preview May 7, 2022 at 8:40PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 BUG: hmr-client.js fails to load when inside of a srcdoc iframe

1 participant