Fix throws an error on "about:telemetry"

This commit is contained in:
janekptacijarabaci 2018-06-23 18:37:27 +02:00 committed by Roy Tam
commit 6d4a2c3c40

View file

@ -75,6 +75,10 @@ function isFlatArray(obj) {
* This is a helper function for explodeObject.
*/
function flattenObject(obj, map, path, array) {
if (!obj) {
return;
}
for (let k of Object.keys(obj)) {
let newPath = [...path, array ? "[" + k + "]" : k];
let v = obj[k];