check against domain to see if pwa manifest should be added

This commit is contained in:
Anthony 2021-06-07 20:48:00 +02:00 committed by jessopb
parent 27abc1e9d3
commit 7eeb3d3c55

View file

@ -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>';