0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Update to use dedent in the same manner as other snippets

This commit is contained in:
Sean Robertson
2021-10-01 12:44:28 +13:00
parent 68f9b0d8ff
commit b24c3527ca

View File

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