neat-run / wrapped

GitHub Wrapped, inspired by Spotify Wrapped

Home Page:https://wrapped.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i think i found a bug.

binary-blazer opened this issue · comments

When i use the copy image and copy link button then there appears an error in the browser console and the link or the image isnt copied to clipboard.

The error:
grafik

(And the "share on twitter" button is very slow and sometimes it isnt working too)

Thanks for spotting this, @JanjyTapYT. Could I ask which browser you're using? It seems like the browser ClipboardItem API might not be supported on Firefox.

One solution is to call window.ClipboardItem( ... ) instead. Would you want to open a PR? A good place to start is exports.ts line 38. I'm not sure of the solution, so adding a .catch(err => console.error(err)) on line ~39 might clarify.

Let me know if you need any help.

Thanks for spotting this, @JanjyTapYT. Could I ask which browser you're using? It seems like the browser ClipboardItem API might not be supported on Firefox.

One solution is to call window.ClipboardItem( ... ) instead. Would you want to open a PR? A good place to start is exports.ts line 38. I'm not sure of the solution, so adding a .catch(err => console.error(err)) on line ~39 might clarify.

Let me know if you need any help.

no it is not working with window.ClipboardItem( ... )

and i tried Chrome and Microsoft Edge too, and it doesnt work in Chrome and Microsoft Edge too.

i tried it again and now it works in Microsoft Edge, Chrome and Brave

Oh and @tedspare can you help me with the Twitter button? It gives a error too
grafik

i tried it again and now it works in Microsoft Edge, Chrome and Brave

Glad to hear this but hmm odd - would love to know how to replicate the original error

Oh and @tedspare can you help me with the Twitter button? It gives a error too grafik

This is odd because the row-level security policy for objects should allow both INSERT and SELECT, which are needed to upload the link preview image. Could you sign out (s shortcut), refresh, and sign in again?