Skip to content

Commit 69451d2

Browse files
Do not set calcNewSig to false in request
1 parent 96c72a9 commit 69451d2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

site/static/compare.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,13 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
819819
let values = Object.assign({}, {
820820
start: "",
821821
end: "",
822+
calcNewSig: true,
822823
stat: "instructions:u",
823824
}, state);
824-
values["calcNewSig"] = values.calcNewSig === 'true';
825+
// Make sure we pass a boolean.
826+
if (typeof values.calcNewSig === "string") {
827+
values.calcNewSig = values.calcNewSig === "true";
828+
}
825829
makeRequest("/get", values).then(function (data) {
826830
app.data = data;
827831
});
@@ -843,4 +847,4 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
843847
</script>
844848
</body>
845849

846-
</html>
850+
</html>

0 commit comments

Comments
 (0)