提交 85a82ed4 编写于 作者: M Mike Greiling

use less error-prone lowercase comparison for isSubscribed

上级 d23a888b
......@@ -24,7 +24,7 @@
}
button.classList.add('disabled');
const isSubscribed = buttonSpan.innerHTML.trim() !== 'Subscribe';
const isSubscribed = buttonSpan.innerHTML.trim().toLowerCase() !== 'subscribe';
const toggleActionUrl = this.containerElm.getAttribute('data-url');
$.post(toggleActionUrl, () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册