We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80e002 commit 71c885cCopy full SHA for 71c885c
index.js
@@ -1,6 +1,6 @@
1
'use strict'
2
3
-const { URL } = require('url')
+const URL = global.window ? window.URL : require('url').URL
4
const urlRegex = require('url-regex')({ exact: true })
5
6
const REGEX_HTTP_PROTOCOL = /^https?:\/\//i
0 commit comments