From fa26b56c17383d58b704f61e318a1c0aea6f942a Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 4 Jul 2022 16:54:24 +0200 Subject: [PATCH] Removed dead code no issue --- ghost/sodo-search/src/index.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ghost/sodo-search/src/index.js b/ghost/sodo-search/src/index.js index 6516d26dda..23384c0fd4 100644 --- a/ghost/sodo-search/src/index.js +++ b/ghost/sodo-search/src/index.js @@ -25,21 +25,11 @@ function getSiteData() { return {}; } -function handleTokenUrl() { - const url = new URL(window.location.href); - if (url.searchParams.get('token')) { - url.searchParams.delete('token'); - window.history.replaceState({}, document.title, url.href); - } -} - function setup({siteUrl}) { addRootDiv(); - handleTokenUrl(); } function init() { - // const customSiteUrl = getSiteUrl(); const {siteUrl: customSiteUrl} = getSiteData(); const siteUrl = customSiteUrl || window.location.origin; setup({siteUrl});