pull down to refresh
We will see who pays who!
You know I love getting to accuse you of cheating.
I made my payment two hours ago, but your countdown clock has only advanced 16 minutes.
There’s a bug, I suspect clock drift between my JavaScript counting down each second vs real time
But when you refresh the page it should show the correct time
I just paid and it did show 22h left for example
edit: ohhh, or my JavaScript countdown is only running when it’s in the foreground. If I were a browser, I also wouldn’t keep JavaScript running in the background.
Yeah, I remember lastpaywins had something similar going on where timers would not sync between tabs... @alex_lewin resolved it somehow, but don't know how.
payment notifications are emitted via websocket that contain a timestamp of the payment. then the browser calculates how much time is left based on its own clock
Ohh, thank you, that would also fix my issue probably:
I currently fetch the timestamp when the invoice will expire once and then I let the browser count down the seconds.
But instead, I should let the browser calculate the difference between now and the expiration timestamp every second. Then there would be no clock drift, for example if the browser doesn't run the JS interval every second for whatever—probably good—reason.
See @Undisciplined, we have a real OG here
I can already tell that this game is going to get out of hand.
Depends how often they zap each other.
I'm a bit of a degen, at times~~
Different dynamics than LPW. Not sure how I'll go about with this one.
Are you paying me to be your friend or am I paying you?
Either way, I'm in!