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 6d67e6b commit 5bf30b1Copy full SHA for 5bf30b1
src/phoenix/shell.js
@@ -74,6 +74,8 @@ Phoenix.app = {
74
copyToClipboard: function (textToCopy) {
75
if(Phoenix.browser.isTauri){
76
return window.__TAURI__.clipboard.writeText(textToCopy);
77
+ } else if(window.navigator && window.navigator.clipboard){
78
+ return window.navigator.clipboard.writeText(textToCopy);
79
}
80
const textArea = document.createElement("textarea");
81
textArea.value = textToCopy;
0 commit comments