itch.io icon indicating copy to clipboard operation
itch.io copied to clipboard

Clipboard functionality for HTML5, in-browser projects broken, blocked or missing on the itch.io platform

Open all4martini opened this issue 3 years ago • 2 comments
trafficstars

Hello! I'm developing a little art tool that I've published to itch.io. I'd like to make use of copy/pasting for things like importing colors. The project is built in the latest version of GameMaker & exported to HTML5. Once tested in HTML5-form using GameMaker itself, the clipboard works just fine, but once it's been uploaded to itch.io - the clipboard functionalities don't work. I'm not sure if there's a permission I'm not being granted, or if something's broken. But I'd love for this to be resolved.

This is my project I'm referring to. https://gmsm.itch.io/nacho

all4martini avatar Aug 11 '22 15:08 all4martini

Generally, for security reasons, I would recommend having your UI present a field for the user to copy/paste into directly, instead of trying to manipulate the clipboard directly via JavaScript.

leafo avatar Aug 18 '22 19:08 leafo

My web game uses the clipboard to share images of game scores, it's a fun feature to have. Understanding the clipboard hijacking risk, perhaps itch could prompt the user with a notice of clipboard permissions (on applicable games) with an option to clear their clipboard on game launch?

dudasaus avatar Dec 12 '23 03:12 dudasaus