This commit is contained in:
WinterMyst
2024-09-26 13:42:11 +02:00
parent e83c7b8ee0
commit 6e69dd8681

View File

@ -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:');