check against domain to see if pwa manifest should be added
This commit is contained in:
parent
27abc1e9d3
commit
7eeb3d3c55
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
const {
|
||||
URL,
|
||||
DOMAIN,
|
||||
SITE_TITLE,
|
||||
SITE_CANONICAL_URL,
|
||||
OG_HOMEPAGE_TITLE,
|
||||
|
@ -80,7 +81,7 @@ function buildOgMetadata(overrideOptions = {}) {
|
|||
|
||||
function conditionallyAddPWA() {
|
||||
let head = '';
|
||||
if (SITE_TITLE === 'Odysee') {
|
||||
if (DOMAIN === 'odysee.com') {
|
||||
head += '<link rel="manifest" href="./public/pwa/manifest.json"/>';
|
||||
head += '<link rel="apple-touch-icon" sizes="180x180" href="./public/pwa/icon-180.png">';
|
||||
head += '<script src="./serviceWorker.js"></script>';
|
||||
|
|
Loading…
Reference in a new issue