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.
2 parents 3c31a0a + 8f615e2 commit 56ed06dCopy full SHA for 56ed06d
extension/src/json-viewer/check-if-json.js
@@ -3,7 +3,7 @@ var extractJSON = require('./extract-json');
3
function getPreWithSource() {
4
var childNodes = document.body.childNodes;
5
6
- if (childNodes.length > 1){
+ if (childNodes.length > 1 && childNodes[0].nodeName === "#text"){
7
document.body.normalize() // concatenates adjacent text nodes
8
}
9
0 commit comments