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

[BUGFIX] Allow clipboard APIs on HTTP #150

Merged
merged 1 commit into from
Oct 17, 2021

Conversation

GenericStudent
Copy link
Contributor

Resolves redmine ticket: 12258

Added more JS logic to allow for browsers who wont allow access to navigator.clipboard API to still copy public keys for tunnels, peers list and tunnel edit.

Works on HTTP admin access as a fallback, still attempts the modern API first

…vigator.clipboard API to still copy public keys for tunnels, peers list and tunnel edit
@rcmcdonald91
Copy link
Owner

There is a simpler way of facilitating copy/paste:

$('#copypubkey').click(function () {
  $('#publickey').focus();
  $('#publickey').select();
  document.execCommand("copy");
});

I don't believe this requires TLS.

@rcmcdonald91 rcmcdonald91 merged commit ce5a286 into rcmcdonald91:main Oct 17, 2021
@GenericStudent GenericStudent deleted the bugfix/http-copy branch October 17, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants