Open
Description
- I build the same set of vitepress files and host them on 2 domains (a.com and b.com)
- In
config.ts
, I tried to check domain and only callwithPwa(...)
if on a.com, but PWA still installable on both a.com and b.com
const expectedDomain = "a.com";
if (window.location.hostname == expectedDomain) {
console.log("Installable because", window.location.hostname);
final = withPwa(final);
} else console.log("Not installable because", window.location.hostname);
- Possible to make only PWA show install button only on a.com?
Metadata
Metadata
Assignees
Labels
No labels