chore: test deploy snapshot
This commit is contained in:
11
index.html
11
index.html
@@ -29,6 +29,7 @@
|
||||
};
|
||||
|
||||
let installMetadata = null;
|
||||
let staticManifestHref = null;
|
||||
|
||||
if (pathname === '/play/apps') {
|
||||
const appId = searchParams.get('app')?.trim() ?? '';
|
||||
@@ -59,6 +60,7 @@
|
||||
themeColor: '#165dff',
|
||||
scope: pathname,
|
||||
};
|
||||
staticManifestHref = '/chat-share.webmanifest';
|
||||
}
|
||||
|
||||
if (!installMetadata) {
|
||||
@@ -93,10 +95,11 @@
|
||||
],
|
||||
};
|
||||
|
||||
const manifestBlob = new Blob([JSON.stringify(manifest, null, 2)], {
|
||||
type: 'application/manifest+json',
|
||||
});
|
||||
const manifestHref = URL.createObjectURL(manifestBlob);
|
||||
const manifestHref = staticManifestHref ?? URL.createObjectURL(
|
||||
new Blob([JSON.stringify(manifest, null, 2)], {
|
||||
type: 'application/manifest+json',
|
||||
}),
|
||||
);
|
||||
let manifestLink = document.querySelector('link[rel="manifest"]');
|
||||
|
||||
if (!manifestLink) {
|
||||
|
||||
Reference in New Issue
Block a user