Skip to content

Commit 918372d

Browse files
committed
Comment to prevent future mistake
1 parent 791ed07 commit 918372d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/useful-forks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function init() {
4141
const parentLi = forkBtn.closest("li");
4242
const newLi = createUsefulBtn();
4343
parentLi.parentNode.insertBefore(newLi, parentLi);
44-
setBtnUrl();
44+
setBtnUrl(); // this needs to happen after the btn is inserted in the DOM
4545
}
4646
}
4747

0 commit comments

Comments
 (0)