We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacaa09 commit 5539e1fCopy full SHA for 5539e1f
src/js/options.js
@@ -303,6 +303,10 @@ async function copyInput(event) {
303
console.debug('element.dataset.copyInput:', element.dataset.copyInput)
304
const input = document.querySelector(element.dataset.copyInput)
305
console.debug('input:', input)
306
+ if (!input.value) {
307
+ showToast('No Data to Copy.', 'warning')
308
+ return
309
+ }
310
await navigator.clipboard.writeText(input.value)
311
if (element.dataset.copyText) {
312
showToast(element.dataset.copyText)
0 commit comments