提交 cc19497c 编写于 作者: M Matt Bierner

Remove unnecessary toLowerCase

上级 f5849beb
......@@ -256,7 +256,7 @@
/** @type {*} */
let node = event.target;
while (node) {
if (node.tagName && node.tagName.toLowerCase() === 'a' && node.href) {
if (node.tagName && node.tagName === 'A' && node.href) {
if (node.getAttribute('href').startsWith('#')) {
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册