Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): handle null window.location.origin (#2813)
when using a data URI or file URI (#2582), or when using iframe's `srcdoc`, the value for window.location.origin can be `null`. in these particular cases, passing `null` to `new URL(url, null)` will throw the following error: "Failed to construct 'URL': Invalid base URL"
- Loading branch information