diff --git a/site/alkali_metal.html b/site/alkali_metal.html index 6940a0e..052d9ab 100644 --- a/site/alkali_metal.html +++ b/site/alkali_metal.html @@ -76,8 +76,11 @@ let app = new Vue({ methods: { async start_poll(poll_data) { try { - let r = await axios.post("/twitch/alkali_metal/poll", poll_data); - alert("Poll should've been created successfully."); + await axios.post("/polls/twitch/alkali_metal/poll", poll_data); + let qs = new URLSearchParams(window.location.search); + if (!qs.has("no_alert")) { + alert("Poll should've been created successfully."); + }; } catch (err) { console.error(err); alert("Something went wrong starting the poll, check to see if one is made already.") diff --git a/site/czechgamesedition.html b/site/czechgamesedition.html index 9267b77..fbf9467 100644 --- a/site/czechgamesedition.html +++ b/site/czechgamesedition.html @@ -76,8 +76,11 @@ let app = new Vue({ methods: { async start_poll(poll_data) { try { - let r = await axios.post("/polls/twitch/czechgamesedition/poll", poll_data); - alert("Poll should've been created successfully."); + await axios.post("/polls/twitch/czechgamesedition/poll", poll_data); + let qs = new URLSearchParams(window.location.search); + if (!qs.has("no_alert")) { + alert("Poll should've been created successfully."); + }; } catch (err) { console.error(err); alert("Something went wrong starting the poll, check to see if one is made already.")