"use strict"; /* global document, history, send, window */ document.getElementById("get-started").onclick = event => { event.preventDefault(); send({ message: "auth me with github" }); }; if (window.location.search.includes("?code=")) { document.querySelector("developer-program").innerHTML = `

Need An Address?

To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to:

  1. Download the LBRY SDK.
  2. Launch the command-line utility (./lbrynet start).
  3. Run ./lbrynet address list and copy the id field.
`; history.replaceState({}, "", window.location.pathname); // clean up URL bar } if (document.getElementById("creditsAcquire")) { document.getElementById("creditsAcquire").onclick = () => { send({ address: document.getElementById("walletAddress").value, code: document.getElementById("oauthCode").value, message: "verify github auth" }); document.querySelector("developer-program").innerHTML = "

Awaiting response from LBRY server...

"; }; }