0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00
Fix QR code snippet when `brew.shareId` doesn't exist
This commit is contained in:
Trevor Buckner
2021-09-30 21:07:51 -04:00
committed by GitHub

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}`;
}
},