From ff03673b8dbdc23cd1346cc644aea1d83583e3ce Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 12 Aug 2024 15:19:03 +0200 Subject: [PATCH 1/2] fix --- src/app/report/report.component.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/report/report.component.ts b/src/app/report/report.component.ts index 09ff089bf..3940b4470 100644 --- a/src/app/report/report.component.ts +++ b/src/app/report/report.component.ts @@ -228,6 +228,16 @@ export class ReportComponent implements OnInit, OnDestroy { this.calendarDateChanged(); this.startDate = new Date(this.decryptedReportDataChanged.report_metadata.starttest); + // get css style + this.http.get('/assets/bootstrap.min.css', { responseType: 'text' }).subscribe(res => { + this.report_css = res; + }); + + // get bug bountys programs list, full credits: https://github.com/projectdiscovery/public-bugbounty-programs + this.http.get('/assets/chaos-bugbounty-list.json?v=' + + new Date()).subscribe(res => { + this.bugbountylist = res.programs; + }); + }); @@ -305,16 +315,6 @@ export class ReportComponent implements OnInit, OnDestroy { } }); - // get css style - this.http.get('/assets/bootstrap.min.css', { responseType: 'text' }).subscribe(res => { - this.report_css = res; - }); - - // get bug bountys programs list, full credits: https://github.com/projectdiscovery/public-bugbounty-programs - this.http.get('/assets/chaos-bugbounty-list.json?v=' + + new Date()).subscribe(res => { - this.bugbountylist = res.programs; - }); - this.getReportProfiles(); } From 5f83fa9b8a79b762912fa8510cb04394e8159bac Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 12 Aug 2024 15:25:01 +0200 Subject: [PATCH 2/2] fix2 --- src/app/report/report.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/report/report.component.ts b/src/app/report/report.component.ts index 3940b4470..6cfd7b83b 100644 --- a/src/app/report/report.component.ts +++ b/src/app/report/report.component.ts @@ -238,6 +238,8 @@ export class ReportComponent implements OnInit, OnDestroy { this.bugbountylist = res.programs; }); + this.getReportProfiles(); + }); @@ -315,8 +317,6 @@ export class ReportComponent implements OnInit, OnDestroy { } }); - this.getReportProfiles(); - } } });