diff --git a/gulpfile.js b/gulpfile.js index 34a1ea0..a058013 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -308,12 +308,7 @@ async function publishToFoundry(done) { body: JSON.stringify(payload), }); - let responseData; - if (contentType && contentType.includes('application/json')) { - responseData = await response.json(); - } else { - responseData = await response.text(); - } + const responseData = await response.text(); if (responseData.status === 'success') { console.log('Successfully published to Foundry VTT:');