mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Code cleanup.
This commit is contained in:
parent
6ed660d8a7
commit
4de884010a
@ -54,7 +54,7 @@
|
|||||||
const parseURL = url => {
|
const parseURL = url => {
|
||||||
try {
|
try {
|
||||||
// use location.origin as the base to handle cases where the url is a relative path
|
// 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;
|
url = pathname + search + hash;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
/* empty */
|
/* empty */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user