-
Notifications
You must be signed in to change notification settings - Fork 44
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 button to copy device IP from Brighterscript Language > Devices #437
Comments
I'll work on this when I have time, next weekend probably. Just wanted to create an issue for tracking. |
Great, thanks! Here's the relevant section of code you'll need to modify.
|
var text = "Example text to appear on clipboard";
navigator.clipboard.writeText(text).then(function() {
console.log('Copying to clipboard was successful!');
}, function(err) {
console.error('Could not copy text: ', err);
}); |
async function copyContent() {
try {
await navigator.clipboard.writeText('This is the text to be copied');
console.log('Content copied to clipboard');
} catch (err) {
console.error('Failed to copy: ', err);
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's only a button to open the IP on a browser, but no button to copy the IP. Would be nice to have a 1-click for this.
The text was updated successfully, but these errors were encountered: