You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It tries to copy text using navigator.clipboard.writeText(x) but navigator.clipboard is available only when url is either HTTPS or localhost.
There are workarounds for "insecure sources" such as document.execCommand('copy').
Or probably checking window.isSecureContext (which is true for both HTTPS and localhost) and showing a proper error message would be also fine.
Gitea Version
1.20.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Running file gitea-1.20.1-windows-4.0-amd64.exe
Database
None
The text was updated successfully, but these errors were encountered:
Fixes: #26202
Actually later I found out the code did not use `clippie`, so I fixed
it. The bug was never in the clippie module like I initially suspected.
Also, I added a tooltip for feedback.
<img width="139" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/da501670-9c15-4412-969a-b559773c7ab9">
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Description
It's impossible to copy attachment link when accessing gitea over local network:
It tries to copy text using
navigator.clipboard.writeText(x)
butnavigator.clipboard
is available only when url is either HTTPS or localhost.There are workarounds for "insecure sources" such as
document.execCommand('copy')
.Or probably checking
window.isSecureContext
(which istrue
for both HTTPS and localhost) and showing a proper error message would be also fine.Gitea Version
1.20.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Running file
gitea-1.20.1-windows-4.0-amd64.exe
Database
None
The text was updated successfully, but these errors were encountered: