2022-02-02 15:28:29 +00:00
|
|
|
export default function (page) {
|
|
|
|
if (
|
|
|
|
window.location.pathname === page ||
|
|
|
|
window.location.pathname.indexOf(page) !== -1
|
|
|
|
) {
|
|
|
|
return false;
|
|
|
|
}
|
2023-03-06 08:35:49 +00:00
|
|
|
|
2022-02-02 15:28:29 +00:00
|
|
|
window.location.replace(page);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|