from here on out, ill post codecel questions or other shit i need help with here and give mbux rewards appropriately
subscribe to the thread if ur interested
from here on out, ill post codecel questions or other shit i need help with here and give mbux rewards appropriately
subscribe to the thread if ur interested
Jump in the discussion.
No email address required.
Donβt click it twice.
BUG FIXED MY NEIGHBOR
Jump in the discussion.
No email address required.
More options
Context
Open and close the report modal multiple times and check the event listenersβevery time the modal is opened, an event listener on the submit button is re-added. You can either directly set the
onclick
property of the button to make sure that there is only one custom event listener (easy, but kinda awful), or you can remove the event listener every time the modal closes (better approach, use the same thing on line 8 in comments_v.js to get the instance and add the corresponding removeEventListener).Jump in the discussion.
No email address required.
check's in the mail
Jump in the discussion.
No email address required.
More options
Context
More options
Context
while(true){
catch(error){}}
There you go it should fix all you're bugs, @KongDong_of_Uganda is happy @KongDong_of_Uganda could be of help!
Trans lives matter
Jump in the discussion.
No email address required.
More options
Context
throttling submissions would probably be the best way of fixing this, would also prevent people from actually double clicking it. hmm looks like postToast only has a callback for success right? ideally you'd handle enabling it on any response, so i'd probably just patch this with a timer to prevent double submits - either with a variable like this or by disabling the button.
edit: oh didn't realize this was all on window, can probably chuck the canSubmit on
reportCommentButton.canSubmit = true
in that caseJump in the discussion.
No email address required.
More options
Context