mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Fix throws an error on "about:telemetry"
This commit is contained in:
parent
5cfc75fdc9
commit
6d4a2c3c40
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@ function isFlatArray(obj) {
|
||||||
* This is a helper function for explodeObject.
|
* This is a helper function for explodeObject.
|
||||||
*/
|
*/
|
||||||
function flattenObject(obj, map, path, array) {
|
function flattenObject(obj, map, path, array) {
|
||||||
|
if (!obj) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (let k of Object.keys(obj)) {
|
for (let k of Object.keys(obj)) {
|
||||||
let newPath = [...path, array ? "[" + k + "]" : k];
|
let newPath = [...path, array ? "[" + k + "]" : k];
|
||||||
let v = obj[k];
|
let v = obj[k];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue