dfgbhe
This commit is contained in:
parent
e83c7b8ee0
commit
6e69dd8681
@ -308,12 +308,7 @@ async function publishToFoundry(done) {
|
|||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
let responseData;
|
const responseData = await response.text();
|
||||||
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