Pass the auth token when submitting thumbnails

pull/457/head
ElementalAlchemist 3 weeks ago committed by Christopher Usher
parent 1320472d05
commit ef061b6768

@ -87,6 +87,9 @@ window.addEventListener("DOMContentLoaded", async (event) => {
crop: [cropXStart, cropYStart, cropXEnd, cropYEnd],
location: [locXStart, locYStart, locXEnd, locYEnd],
};
if (googleUser) {
submitData.token = googleUser.getAuthResponse().id_token;
}
if (!errorListContainer.hasChildNodes()) {
const submitResponse = await fetch("/thrimshim/add-template", {

Loading…
Cancel
Save