screenright-client 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -86,16 +86,16 @@ export const capture = (page, key, title, parentKey) => __awaiter(void 0, void 0
|
|
86
86
|
key,
|
87
87
|
title,
|
88
88
|
url: page.url(),
|
89
|
-
|
89
|
+
children: [],
|
90
90
|
};
|
91
91
|
if (parentKey) {
|
92
92
|
const searchParent = (attributes) => {
|
93
93
|
for (let i = 0; i < attributes.length; i++) {
|
94
94
|
if (attributes[i].key === parentKey) {
|
95
|
-
attributes[i].
|
95
|
+
attributes[i].children.push(attribute);
|
96
96
|
break;
|
97
97
|
}
|
98
|
-
searchParent(attributes[i].
|
98
|
+
searchParent(attributes[i].children);
|
99
99
|
}
|
100
100
|
};
|
101
101
|
searchParent(result.screenshotItemAttributes);
|