fff
This commit is contained in:
parent
aa7a951ae1
commit
e83c7b8ee0
@ -308,7 +308,12 @@ async function publishToFoundry(done) {
|
|||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
const responseData = await response.json();
|
let responseData;
|
||||||
|
if (contentType && contentType.includes('application/json')) {
|
||||||
|
responseData = await response.json();
|
||||||
|
} else {
|
||||||
|
responseData = await response.text();
|
||||||
|
}
|
||||||
|
|
||||||
if (responseData.status === 'success') {
|
if (responseData.status === 'success') {
|
||||||
console.log('Successfully published to Foundry VTT:');
|
console.log('Successfully published to Foundry VTT:');
|
||||||
|
Loading…
Reference in New Issue
Block a user