解决目录跳转无法在发布版工作的bug
This commit is contained in:
parent
3e8b152e2c
commit
e8f3333e19
|
@ -10,7 +10,8 @@
|
||||||
prevNode.classList.add('original-english');
|
prevNode.classList.add('original-english');
|
||||||
}
|
}
|
||||||
node.title = prevNode.innerText;
|
node.title = prevNode.innerText;
|
||||||
node.id = prevNode.id;
|
node.setAttribute('id', prevNode.id);
|
||||||
|
prevNode.removeAttribute('id');
|
||||||
node.classList.add('translated');
|
node.classList.add('translated');
|
||||||
node.classList.add('translated-cn');
|
node.classList.add('translated-cn');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue