mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-21 13:51:00 +02:00
The useClipboard hook also just uses navigator.clipboard.writeText() under the hood, but the timeout and state handling that the hook provides were just not a good fit for showing a one-shot notification with error detectionm, so doing the copying manually. Addresses part of https://github.com/prometheus/prometheus/issues/16162 Signed-off-by: Julius Volz <julius.volz@gmail.com>