Skip to content

fix(web): show api key copy button in Firefox - #9704

Merged
jrasm91 merged 1 commit into
immich-app:mainfrom
lukashass:api-key-copy-button-firefox
May 23, 2024
Merged

jrasm91 merged 1 commit into
immich-app:mainfrom
lukashass:api-key-copy-button-firefox

Conversation

@lukashass

Copy link
Copy Markdown
Contributor

Since all other text copy buttons do not have a check either, I removed this.

writeText() compatibility: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText#browser_compatibility

An alternative would be to check navigator.clipboard.writeText for all buttons, but since there is a good error message that encourages people to use https, I don't think there is a need to hide the buttons.

@jrasm91 jrasm91 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice. Why in the world were we requiring "copy image to clipboard" for copy text lol.

@jrasm91
jrasm91 merged commit 76fdcc9 into immich-app:main May 23, 2024
@lukashass
lukashass deleted the api-key-copy-button-firefox branch May 24, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants