new: Add warning when a node has mixed content.

pull/62/head
Raphaël Vinot 2019-06-19 14:23:12 +01:00
parent 23e3cc5d43
commit 9fdd0d5782
2 changed files with 13 additions and 3 deletions

2
Pipfile.lock generated
View File

@ -247,7 +247,7 @@
"har2tree": {
"editable": true,
"git": "https://github.com/viper-framework/har2tree.git",
"ref": "8f0858a233b78e6050136ca1ad9feb4185c81696"
"ref": "729511265f7d58cb0aa9c8d4f0e6cc286cfbb87e"
},
"hyperlink": {
"hashes": [

View File

@ -439,9 +439,19 @@ function update(root, computed_node_width=0) {
.attr('x', 12)
.attr('y', 0)
.style("opacity", "0.5")
.attr("stroke", "black")
.attr("stroke", d => {
if (d.data.mixed_content){
return "red";
}
return "black";
})
.attr('stroke-opacity', "0.8")
.attr("stroke-width", "2")
.attr("stroke-width", d => {
if (d.data.mixed_content){
return "4";
}
return "2";
})
.attr("stroke-linecap", "round")
.attr("fill", "white");