Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Conversation

@PuruVJ
Copy link
Collaborator

@PuruVJ PuruVJ commented Jul 18, 2023

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 18, 2023

🦋 Changeset detected

Latest commit: b68b3f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/site-kit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@PuruVJ PuruVJ merged commit 5498d82 into master Jul 22, 2023
@PuruVJ PuruVJ deleted the feat/copy-button branch July 22, 2023 09:04

function copy() {
try {
navigator.clipboard.writeText(code);

Choose a reason for hiding this comment

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

@PuruVJ this returns Promise, needs async catch I believe.

ref: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText#return_value

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants