Skip to content

Commit

Permalink
Use global URL instead and rely on CoreJS polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Jun 23, 2020
1 parent 2ac64a2 commit 20b1830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/security/common/is_internal_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { parse, URL } from 'url';
import { parse } from 'url';

export function isInternalURL(url: string, basePath = '') {
const { protocol, hostname, port, pathname } = parse(
Expand Down

0 comments on commit 20b1830

Please sign in to comment.