Skip to content

fix: clipboard copy on non-secure context#1560

Merged
pedrolamas merged 1 commit intofluidd-core:developfrom
pedrolamas:pedrolamas/fix-1556
Dec 29, 2024
Merged

fix: clipboard copy on non-secure context#1560
pedrolamas merged 1 commit intofluidd-core:developfrom
pedrolamas:pedrolamas/fix-1556

Conversation

@pedrolamas
Copy link
Member

The existing clipboard copy method relies on having navigator.clipboard access, however this is only available on "secure" https context, and always undefined on "non-secure" http context.

The fix here is to use an old deprecated method that seems to still work in browsers and under "non-secure" http context.

Fix #1556

@pedrolamas pedrolamas added the GH - Bug Something isn't working label Dec 28, 2024
@pedrolamas pedrolamas added this to the 1.31.4 milestone Dec 28, 2024
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas merged commit efe4771 into fluidd-core:develop Dec 29, 2024
4 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1556 branch December 29, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Device copy button not working

1 participant