diff --git a/src/modules/processing/url.js b/src/modules/processing/url.js index 0420a465..ab995b72 100644 --- a/src/modules/processing/url.js +++ b/src/modules/processing/url.js @@ -48,11 +48,12 @@ export function aliasURL(url) { break; } - return { url, host: host.sld } + return url } -export function cleanURL({ url, host }) { +export function cleanURL(url) { assert(url instanceof URL); + const host = psl.parse(url.hostname).sld; let stripQuery = true; if (host === 'pinterest') {