window.doc = document;
function google_oauth()
{
return window.gapi.auth2.init({
ux_mode: "popup", redirect: env.GOOGLE_REDIRECT_URI });
}
async function handle_click()
{
try {
await google_oauth();
} catch {}
}
const btn_google = doc.querySelector("button");
btn_google.onclick = handle_click;