-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature/1358 copy coordinates #1506
Conversation
Netlify fails since the repo structure is updated in develop but not in master. Nothing to worry about. We should set up separate builds for develop and master tbh. |
We're going to test some more, so now in Draft mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
// Make the element non-interactive and hide it | ||
input.setAttribute("readonly", ""); | ||
input.style.position = "absolute"; | ||
input.style.left = "-9999px"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating an element to copy from, wouldn't navigator.clipboard.writeText(coordinatesString)
get the job done? There might be security considerations that i am missing though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
closes #1358