Skip to content

Commit

Permalink
changes done for mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhikachhawa24 committed Jun 4, 2024
1 parent e0a34a3 commit 03c4b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/api/http.capacitor.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class HttpCapacitorAdapter implements HttpClient {

if (receivedData.data && receivedData.data.djp_contents !== null && receivedData.data.djp_contents !== undefined) {
receivedData.data.djp_contents.forEach((item : any) => {
let mimetype = item?.url ? this.checkMimieType(item?.url) : 'text/html';
// let mimetype = item?.url ? this.checkMimieType(item?.url) : 'text/html';
let mimetype = this.checkMimieType(item?.url);
// Traverse through the items array of each provider
const content: SearchContentMetaData = {
agegroup: item.agegroup,
Expand Down

0 comments on commit 03c4b65

Please sign in to comment.