"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 = `
`; 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 internal LBRY API
"; }; }