Skip to content

Commit

Permalink
Hide clipboard message if suppressInfo enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed May 12, 2024
1 parent 65de600 commit 1295256
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addon/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,18 @@
// Test to see the result of the Promise from writing to the clipboard.
function clipSuccess(result) {
// All is well: notify for now until everyone gets used to it.
text.value = '<!-- Output copied to clipboard! -->\n\n' + text.value;
if (!config.suppressInfo) {
text.value = '<!-- Output copied to clipboard! -->\n\n' + text.value;
}
}
function clipError(error) {
var text = document.getElementById('text');
// See https://bugs.chromium.org/p/chromium/issues/detail?id=1074489
// Don't bother people with error message: they'll need to cut and paste output as usual.
//text.value = '<!-- Output not copied to clipboard: See issue 1074489 at bugs.chromium.org -->\n\n' + text.value;
text.value = '<!-- Copy and paste the converted output. -->\n\n' + text.value;
if (!config.suppressInfo) {
text.value = '<!-- Copy and paste the converted output. -->\n\n' + text.value;
}
}

</script>

0 comments on commit 1295256

Please sign in to comment.