Skip to content

Commit 71c885c

Browse files
committed
build: revert shim
1 parent d80e002 commit 71c885c

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 } = require('url')
3+
const URL = global.window ? window.URL : require('url').URL
44
const urlRegex = require('url-regex')({ exact: true })
55

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

0 commit comments

Comments
 (0)