mcgilman commented on code in PR #9701:
URL: https://github.com/apache/nifi/pull/9701#discussion_r1953053690
##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/service/canvas-utils.service.ts:
##########
@@ -956,7 +956,16 @@ export class CanvasUtils {
return { x, y };
}
+ public isClipboardAvailable(): boolean {
+ // system clipboard interaction requires the browser to be in a
secured context.
+ return window.isSecureContext && Object.hasOwn(window,
'ClipboardItem');
Review Comment:
Do we need similar logic in the `CopyDirective` so we don't show the copy
button when copying it's supported?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]