Skip to content

Commit b51ee2a

Browse files
committed
[regression] Use JSON.stringify() to eliminate undefined values
Related feedback: https://www.reddit.com/r/uBlockOrigin/comments/1y2xwg2/
1 parent 5badac7 commit b51ee2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/js/support.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ async function showSupportData() {
163163
const supportData = await vAPI.messaging.send('dashboard', {
164164
what: 'getSupportData',
165165
});
166-
const shownData = structuredClone(supportData);
166+
// Eliminate `undefined` values
167+
const shownData = JSON.parse(JSON.stringify(supportData));
167168
uselessKeys.forEach(prop => { removeKey(shownData, prop); });
168169
const redacted = true;
169170
if ( redacted ) {

0 commit comments

Comments
 (0)