Removed dead code

no issue
This commit is contained in:
Naz 2022-07-04 16:54:24 +02:00
parent caffa12db6
commit fa26b56c17

View File

@ -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});