Skip to content

Commit

Permalink
fix report card crashing due create manifest service down
Browse files Browse the repository at this point in the history
  • Loading branch information
khmyznikov committed Oct 5, 2024
1 parent f9d285c commit 0b9255a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/pwabuilder/src/script/services/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function getSiteUrlFromManifestOrQueryString(): string | null {
}

export async function createManifestContextFromEmpty(url: string): Promise<ManifestContext> {
let createdManifest;
let createdManifest = {};
try {
const response = await fetch(`${env.manifestCreatorUrl}?url=${url}`, {
method: 'POST',
Expand Down Expand Up @@ -295,7 +295,7 @@ export function updateManifestEvent<T extends Partial<Manifest>>(detail: T) {
id: '',
generatedUrl: '',
default: {
short_name: manifest.short_name || 'My PWA',
short_name: manifest?.short_name || 'My PWA',
},
errors: [],
suggestions: [],
Expand Down

0 comments on commit 0b9255a

Please sign in to comment.