Skip to content

Commit

Permalink
catch error in navigator api on http
Browse files Browse the repository at this point in the history
  • Loading branch information
pateldivyesh1323 committed Oct 26, 2023
1 parent 18934c0 commit 7364edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ celInput.addEventListener("mouseleave", () => {

celCopyIcon.addEventListener("click", () => {
let value = celEditor.editor.getValue();
navigator.clipboard.writeText(value);
navigator.clipboard.writeText(value).catch(console.error);
celCopyHover.style.display = "none"
celCopyClick.style.display = "flex";
setTimeout(() => {
Expand Down

0 comments on commit 7364edb

Please sign in to comment.