From b24c3527cabbc3f0de6792894bfaa9e2c977c3b8 Mon Sep 17 00:00:00 2001 From: Sean Robertson Date: Fri, 1 Oct 2021 12:44:28 +1300 Subject: [PATCH] Update to use `dedent` in the same manner as other snippets --- client/homebrew/editor/snippetbar/snippets/snippets.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js index b7bfaf07d..d2bcc656f 100644 --- a/client/homebrew/editor/snippetbar/snippets/snippets.js +++ b/client/homebrew/editor/snippetbar/snippets/snippets.js @@ -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}`; } }, {