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

Add option to disable clipboard #86

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

Hazegard
Copy link
Contributor

@Hazegard Hazegard commented Mar 6, 2025

This PR adds an option to disable the cliboard functionality.

My use case is using goshs as a drop zone, with no other functionnalities. This use case requires disabling the clipboard functionnality (both on the HTML and on the server side).

This PR add a flag to disable the clipboard. When enabled, the clipboard handlers are disabled, and the html does not render the clipboard widget.

@patrickhener patrickhener changed the base branch from main to no-clip March 7, 2025 07:38
@patrickhener patrickhener merged commit a5829da into patrickhener:no-clip Mar 7, 2025
3 checks passed
@patrickhener
Copy link
Owner

Hi @Hazegard and thanks for contributing. I love the idea of adding no-clipboard to the upload-only mode to further restrict functionality of goshs. I also love the way you implemented that. Really clean and with surgical precision. I will merge it to a new branch and polish it a bit. Finally I will release that as a new version (1.0.2).

So thanks again <3

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.

2 participants