diff --git a/frontend/src/pages/Settings/General/index.tsx b/frontend/src/pages/Settings/General/index.tsx index 306dce56d..6af0151d5 100644 --- a/frontend/src/pages/Settings/General/index.tsx +++ b/frontend/src/pages/Settings/General/index.tsx @@ -83,24 +83,32 @@ const SettingsGeneralView: FunctionComponent = () => { - { - if (value) { - clipboard.copy(value); - toggleState(setCopy, 1500); - } - }} - > + { + // Clipboard API is only available in secure contexts See: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#interfaces + window.isSecureContext && ( + { + if (value) { + clipboard.copy(value); + toggleState(setCopy, 1500); + } + }} + /> + ) + }