Skip to content

Commit a16485b

Browse files
committed
fix is-loading check
1 parent a6bf4ff commit a16485b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/features/copycontent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ const {i18n} = window.config;
44

55
export function initCopyContent() {
66
const btn = document.getElementById('copy-content');
7-
if (!btn || btn.classList.contains('disabled') || btn.classList.contains('is-loading')) return;
7+
if (!btn || btn.classList.contains('disabled')) return;
88

99
btn.addEventListener('click', async () => {
10+
if (btn.classList.contains('is-loading')) return;
1011
let content;
1112
const link = btn.getAttribute('data-link');
1213

0 commit comments

Comments
 (0)