We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dea5c6 commit 793cd94Copy full SHA for 793cd94
js/activity.js
@@ -6479,9 +6479,15 @@ class Activity {
6479
let obj;
6480
try {
6481
if (cleanData.includes("html")) {
6482
- obj = JSON.parse(
6483
- cleanData.match('<div class="code">(.+?)</div>')[1]
6484
- );
+ try {
+ obj = JSON.parse(
+ cleanData.match('<div class="code" id="codeBlock">(.+?)</div>')[1]
6485
+ );
6486
+ } catch (e) {
6487
6488
+ cleanData.match('<div class="code">(.+?)</div>')[1]
6489
6490
+ }
6491
} else {
6492
obj = JSON.parse(cleanData);
6493
}
0 commit comments