mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
Removed dead code
no issue
This commit is contained in:
parent
caffa12db6
commit
fa26b56c17
@ -25,21 +25,11 @@ function getSiteData() {
|
|||||||
return {};
|
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}) {
|
function setup({siteUrl}) {
|
||||||
addRootDiv();
|
addRootDiv();
|
||||||
handleTokenUrl();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
// const customSiteUrl = getSiteUrl();
|
|
||||||
const {siteUrl: customSiteUrl} = getSiteData();
|
const {siteUrl: customSiteUrl} = getSiteData();
|
||||||
const siteUrl = customSiteUrl || window.location.origin;
|
const siteUrl = customSiteUrl || window.location.origin;
|
||||||
setup({siteUrl});
|
setup({siteUrl});
|
||||||
|
Loading…
Reference in New Issue
Block a user