Bug 1485195 - Display array policies correctly in about:policies r=Felipe

Differential Revision: https://phabricator.services.mozilla.com/D9563

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Arshad Kazmi 2018-10-23 20:20:19 +00:00
parent 0c3884d2af
commit 6cbefd2a18

View File

@ -266,6 +266,11 @@ function generateDocumentation() {
column.colSpan = "2";
schema_row.appendChild(column);
sec_tbody.appendChild(schema_row);
} else if (schema.properties[policyName].items) {
let column = col(JSON.stringify(schema.properties[policyName], null, 1), "schema");
column.colSpan = "2";
schema_row.appendChild(column);
sec_tbody.appendChild(schema_row);
} else {
let column = col("type: " + schema.properties[policyName].type, "schema");
column.colSpan = "2";