1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Use queryCommandSupported not queryCommandEnabled to check for copy support

This commit is contained in:
Nick O'Leary 2017-04-21 09:02:04 +01:00
parent adcb2f1aa8
commit 61890f19bc
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -256,17 +256,14 @@ RED.clipboard = (function() {
});
dialog.dialog("option","title",RED._("clipboard.exportNodes")).dialog( "open" );
setTimeout(function() {
$("#clipboard-export").focus();
if (!document.queryCommandEnabled("copy")) {
if (!document.queryCommandSupported("copy")) {
$("#clipboard-dialog-cancel").hide();
$("#clipboard-dialog-close").show();
} else {
$("#clipboard-dialog-cancel").show();
$("#clipboard-dialog-copy").show();
}
},0);
}
function hideDropTarget() {