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

JS implementation of clipboard #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

corfe83
Copy link

@corfe83 corfe83 commented Aug 17, 2020

No description provided.

@atotto
Copy link
Owner

atotto commented Feb 24, 2021

How can I test this?

@corfe83
Copy link
Author

corfe83 commented Jan 20, 2022

You need to use gopherjs and build your own project.

Or you can try out mine, here https://corfe83.github.io/IdleArmada/

I use this feature for the "web demo" of it. You can play it yourself here -- to see the clipboard feature in action, click on the "settings" tab and click one of these two buttons: "Export save to Clipboard", or "Import save from Clipboard".

You should see it's able to write to your clipboard string when you export your save, and when you import, it will read your clipboard to determine if it holds a valid save for the game, or if it holds something else. So if you copy "asdf" and try to import it will fail, but if you export to clipboard and then try to import, it will see a valid save.

@BigJk
Copy link

BigJk commented Dec 24, 2023

Any chance to get this merged? This would help enabling bubbletea to be WASM compile-able: https://github.com/BigJk/bubbletea-in-wasm

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

Successfully merging this pull request may close these issues.

3 participants