Code cleanup.
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
const parseURL = url => {
|
||||
try {
|
||||
// use location.origin as the base to handle cases where the url is a relative path
|
||||
const { pathname, search, hash } = new URL(url, location.origin);
|
||||
const { pathname, search, hash } = new URL(url, origin);
|
||||
url = pathname + search + hash;
|
||||
} catch (e) {
|
||||
/* empty */
|
||||
|
||||
Reference in New Issue
Block a user