-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(history-service): handle absolute server request urls (#561)
- Loading branch information
1 parent
ddbf8c2
commit be84e93
Showing
3 changed files
with
91 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* istanbul ignore next (not fully coverable on Node 10) */ | ||
const URLPonyfill: typeof URL = | ||
typeof URL === 'undefined' && typeof window === 'undefined' | ||
? // tslint:disable-next-line:no-eval https://stackoverflow.com/a/41063795/10385541 | ||
eval('require')('url').URL | ||
: URL; | ||
|
||
export {URLPonyfill as URL}; |