Skip to content

Commit

Permalink
fix(reporter): fix big report files due to bg images (#1229)
Browse files Browse the repository at this point in the history
Closes #1226
  • Loading branch information
JPSchellenberg authored Feb 6, 2021
1 parent 5130c1b commit 2abbc60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reporter-client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ declare var window: {

function removeFile(obj: any) {
for (let key in obj) {
if (key === 'file' || key === 'files') {
if (
key === 'file' ||
key === 'files' ||
key === 'imageSlideBackground' ||
key === 'background'
) {
delete obj[key];
} else if (typeof obj[key] === 'object') {
removeFile(obj[key]);
Expand Down

0 comments on commit 2abbc60

Please sign in to comment.