Unable to load image
Reported by:

site dev help megathread

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

!codecels

88
Jump in the discussion.

No email address required.

Remove this function, whoever added it is r-slurred: https://fsdfsd.net/rDrama/rDrama/src/commit/80824ade1252a5c378e11af8d5cb44a702d2a2b2/files/assets/js/profile_song.js#L73

You can tell this is the culprit because if you click anywhere on the page before clicking the button, it works correctly

I can't tell you exactly why it happens this way, but I'm inclined to say that the event handler attached to the button is evaluated first, pausing the music, and then the click event bubbles up to the document, where the handler sees that the audio is paused and invokes the play function.

Jump in the discussion.

No email address required.

tbf i wrote this code months before i added the toggle button lol, fixed king

Jump in the discussion.

No email address required.

I'm riiiich heck yes :#pepemoney:

Jump in the discussion.

No email address required.

Oh lemme get that bug fixer badge too if u dont mind, pretend I submitted the PR myself :#marseyblowkiss:

Jump in the discussion.

No email address required.

Because it’s a double negative canceling the first click

Jump in the discussion.

No email address required.

This is actually literally correct but didn't have enough information so I should get the bux @Aevann :marseypleading2:

Jump in the discussion.

No email address required.

Lmao no fricking way @Aevann I deserve the sigma or certified r-slur badge for that

Jump in the discussion.

No email address required.

I vouch :marseyokay:

Jump in the discussion.

No email address required.

Happens when the anthem was toggled on in the first :marseywinner: place :marseychtorrr: right? Maybe it's because you need user input to play media :marseyjourno: in the first :marseywinner: place :marseychtorrr: which is 1 click and in the code it's waiting :marseyunresponsive: for the media :marseyjourno: to play before :marseyskellington: it toggles it off using your 2nd click

I didn't look at the code and I'm pretty :marseyglam: much talking out of my butt but that's my guess :marseyshrug:

Jump in the discussion.

No email address required.

More marseys next time please

Jump in the discussion.

No email address required.

Will that fix the bug

Jump in the discussion.

No email address required.

yes


Give me your money and I'll annoy people with it :space: https://i.rdrama.net/images/16965516366194396.webp

Jump in the discussion.

No email address required.

This is close, but the error you see when refreshing the page doesn't occur when you navigate to your profile using the menu. When I refresh my profile with the anthem toggled on, I see

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.

but not when "re-navigating" with the dropdown

Jump in the discussion.

No email address required.

There's probably a bug.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.