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

Sandrava 1336 #1433

Merged
merged 3 commits into from
Aug 15, 2023
Merged

Sandrava 1336 #1433

merged 3 commits into from
Aug 15, 2023

Conversation

Sandravaphilips
Copy link
Collaborator

No description provided.

@Sandravaphilips Sandravaphilips marked this pull request as ready for review August 10, 2023 10:10
@@ -9,7 +9,7 @@ export class CopyToClipboard {
}

copy () {
navigator.clipboard.writeText(this.root.dataset.value || '')
navigator?.clipboard?.writeText(this.root.dataset.value || '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .then will still fail. Instead, do if (navigator.clipboard && navigator.clipboard.writeText) or similar.

Copy link
Contributor

@longhotsummer longhotsummer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .? doesn't work cleanly, so it needs to be more explicit.

@longhotsummer longhotsummer merged commit fccd2be into main Aug 15, 2023
5 of 9 checks passed
@longhotsummer longhotsummer deleted the sandrava-1336 branch August 15, 2023 06:51
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