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 11- abdallah-nour
22- abhi-kr-2100
3+ - AchThomas
34- Ajayff4
45- alany411
56- alexlbr
Original file line number Diff line number Diff line change @@ -3060,8 +3060,13 @@ function getTargetMatch(
30603060}
30613061
30623062function 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
30633066 let base =
3064- typeof window !== "undefined" && typeof window . location !== "undefined"
3067+ typeof window !== "undefined" &&
3068+ typeof window . location !== "undefined" &&
3069+ window . location . origin !== "null"
30653070 ? window . location . origin
30663071 : "unknown://unknown" ;
30673072 let href =
You can’t perform that action at this time.
0 commit comments