Skip to content

Commit

Permalink
web: Check navigator.clipboard exists before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjacobs committed Oct 26, 2023
1 parent 444af0e commit 180d275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/packages/core/src/ruffle-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: () =>
Expand Down

0 comments on commit 180d275

Please sign in to comment.