0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 07:12:39 +00:00

Fix QR code snippet when brew.shareId doesn't exist

This commit is contained in:
Sean Robertson
2021-10-01 11:39:00 +13:00
parent 2401993018
commit 68f9b0d8ff

View File

@@ -55,7 +55,7 @@ module.exports = [
gen : (brew)=>{
return `![]` +
`(https://api.qrserver.com/v1/create-qr-code/?data=` +
`https://homebrewery.naturalcrit.com/share/${brew.shareId}` +
`https://homebrewery.naturalcrit.com` + `${brew.shareId ? `/share/${brew.shareId}` : ''}` +
`&size=100x100) {width:100px;mix-blend-mode:multiply}`;
}
},