Skip to content

Commit cf24304

Browse files
committed
Fix: Correct pwa-install attribute names to manifest-url and icon-url
1 parent f59789e commit cf24304

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎index.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ const initPwaInstall = () => {
9797
// This is the most elegant and "Single Source of Truth" way
9898
const manifest = document.querySelector<HTMLLinkElement>('link[rel="manifest"]');
9999
const icon = document.querySelector<HTMLLinkElement>('link[rel="icon"]');
100-
101-
if (manifest?.href) pwaInstall.setAttribute('manifestpath', manifest.href);
102-
if (icon?.href) pwaInstall.setAttribute('iconpath', icon.href);
100+
console.log(manifest?.href, icon?.href);
101+
if (manifest?.href) pwaInstall.setAttribute('manifest-url', manifest.href);
102+
if (icon?.href) pwaInstall.setAttribute('icon-url', icon.href);
103103

104104
document.body.appendChild(pwaInstall);
105105
};

0 commit comments

Comments
 (0)