File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
- abdallah-nour
2
2
- abhi-kr-2100
3
+ - AchThomas
3
4
- Ajayff4
4
5
- alany411
5
6
- alexlbr
Original file line number Diff line number Diff line change @@ -3060,8 +3060,13 @@ function getTargetMatch(
3060
3060
}
3061
3061
3062
3062
function createURL ( location : Location | string ) : URL {
3063
+ // window.location.origin is "null" (the literal string value) in Firefox under certain conditions
3064
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=878297
3065
+ // this breaks the app when a production build is served from the local file system
3063
3066
let base =
3064
- typeof window !== "undefined" && typeof window . location !== "undefined"
3067
+ typeof window !== "undefined" &&
3068
+ typeof window . location !== "undefined" &&
3069
+ window . location . origin !== "null"
3065
3070
? window . location . origin
3066
3071
: "unknown://unknown" ;
3067
3072
let href =
You can’t perform that action at this time.
0 commit comments