Skip to content

Commit f44f557

Browse files
committed
build: remove browser shim
1 parent daec498 commit f44f557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const URL = global.window ? window.URL : require('url').URL
3+
const { URL } = require('url')
44
const urlRegex = require('url-regex')({ exact: true })
55

66
const REGEX_HTTP_PROTOCOL = /^https?:\/\//i

0 commit comments

Comments
 (0)