0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 00:22:43 +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)=>{ gen : (brew)=>{
return `![]` + return `![]` +
`(https://api.qrserver.com/v1/create-qr-code/?data=` + `(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}`; `&size=100x100) {width:100px;mix-blend-mode:multiply}`;
} }
}, },