Open kingdun3284 opened 3 years ago
This function is missing in the build.
const handlePushState = (win, loc, hstry, isFromPopState, newUrl) => { const pathBeforePush = urlToPath(loc); const newHref = newUrl.href; const hasHash = newUrl.hash.startsWith('#'); if (shouldPushState(loc, newUrl)) { hstry.pushState(null, '', newHref); } if (!isFromPopState) { if (pathBeforePush !== urlToPath(newUrl)) { if (hasHash) { loc.href = newHref; } else { win.scrollTo(0, 0); } } else if (hasHash) { loc.href = newHref; } } };
This function is missing in the build.