File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,8 +90,10 @@ const startUpServer = () => {
9090 lastFeedbackRequestTime = Date . now ( )
9191 localStorage . setItem ( "lastFeedbackRequestTime" , lastFeedbackRequestTime )
9292 return new Promise ( resolve => {
93- fetch ( "https://scratchaddons-feedback.glitch.me/" , {
94- mode : 'no-cors'
93+ fetch ( "https://scratchaddons.npkn.net/feedback/" , {
94+ method : "POST" ,
95+ headers : { "Content-Type" : "application/json" } ,
96+ body : '{"wakeup":true}'
9597 } )
9698 . then ( response => {
9799 // 0 shouldn't be included here, but in my local testing it does that. I'm just adding it incase this happens in other places.
@@ -200,8 +202,9 @@ form.addEventListener("submit", async event => {
200202 try {
201203 lastFeedbackRequestTime = Date . now ( )
202204 localStorage . setItem ( "lastFeedbackRequestTime" , lastFeedbackRequestTime )
203- const res = await fetch ( "https://scratchaddons-feedback.glitch.me/send " , {
205+ const res = await fetch ( "https://scratchaddons.npkn.net/feedback/ " , {
204206 method : "POST" ,
207+ headers : { "Content-Type" : "application/json" } ,
205208 body : JSON . stringify ( body )
206209 } )
207210 if ( ! res . ok ) throw "" ;
You can’t perform that action at this time.
0 commit comments