Release v2.10.3
This commit is contained in:
@@ -969,8 +969,11 @@
|
||||
}
|
||||
|
||||
if (typeof rawJson !== 'string' || !rawJson.trim()) {
|
||||
if (button) {
|
||||
button.classList.add('d-none');
|
||||
if (collapseButton) {
|
||||
collapseButton.classList.add('d-none');
|
||||
}
|
||||
if (expandButton) {
|
||||
expandButton.classList.add('d-none');
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -979,8 +982,11 @@
|
||||
try {
|
||||
parsedJson = JSON.parse(rawJson);
|
||||
} catch (_error) {
|
||||
if (button) {
|
||||
button.classList.add('d-none');
|
||||
if (collapseButton) {
|
||||
collapseButton.classList.add('d-none');
|
||||
}
|
||||
if (expandButton) {
|
||||
expandButton.classList.add('d-none');
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user