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

Hide clipboard message if suppressInfo enabled #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>