mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
docs: Redirect when location match next.ant.design
This commit is contained in:
parent
ed4270b506
commit
34c64e443a
@ -26,7 +26,7 @@ if (typeof window !== 'undefined' && navigator.serviceWorker) {
|
|||||||
|
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
// Redirect to `ant.design` if is not next version anymore
|
// Redirect to `ant.design` if is not next version anymore
|
||||||
if (antdReproduceVersion === 'latest' && location.hostname === 'next.ant.design') {
|
if (location.hostname === 'next.ant.design') {
|
||||||
location.href = location.href.replace('next.ant.design', 'ant.design');
|
location.href = location.href.replace('next.ant.design', 'ant.design');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user