From 180d275f1362c44d388c5a902c16ffc50cff178b Mon Sep 17 00:00:00 2001 From: Daniel Jacobs Date: Thu, 26 Oct 2023 10:52:57 -0400 Subject: [PATCH] web: Check navigator.clipboard exists before using it --- web/packages/core/src/ruffle-player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/core/src/ruffle-player.ts b/web/packages/core/src/ruffle-player.ts index 27cdab78a454..9eb0842f0cd7 100644 --- a/web/packages/core/src/ruffle-player.ts +++ b/web/packages/core/src/ruffle-player.ts @@ -1455,7 +1455,7 @@ export class RufflePlayer extends HTMLElement { }); } - if (window.isSecureContext) { + if (navigator.clipboard && window.isSecureContext) { items.push({ text: text("context-menu-copy-debug-info"), onClick: () =>