package components import "go.fifitido.net/ytdl-web/pkg/serverctx" script pasteClipboard() { const pasteButton = content.querySelector("#paste-button"); const urlField = content.querySelector("#url"); try { const text = await navigator.clipboard.readText(); urlField.value = text; } catch (error) { toastr.error("Failed to paste url from clipboard."); } } templ PasteButton() { if serverctx.IsHTTPS(ctx) { } }