Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
all4martini opened this issue Aug 11, 2022 · 2 comments

Comments

@all4martini
Copy link

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

@leafo
Copy link
Member

leafo commented Aug 18, 2022

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.

@dudasaus
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants