Skip to content

Commit

Permalink
fix(#269): invalid template caused crash when adding from bookmarklet (
Browse files Browse the repository at this point in the history
…#270)

Closes #269.

Fixes a regression introduced in https://github.com/openwhyd/openwhyd/pull/263/files#diff-d04a3fa73a7dd2a179772cc75555275eR109: a Hogan/Mustache template became invalid after prettier processed it on save.
  • Loading branch information
adrienjoly committed Mar 1, 2020
1 parent 53a5526 commit b8a6bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/postEditV2.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ <h1>Sorry it did not work...</h1>
, title: "{{title}}"
, img: "{{img}}"
, src: { id: "{{{refUrl}}}".replace(/\&amp\;/g, "&"), name: "{{refTtl}}" }
{{ #pl }} , pl: { id: "{{id}}", name: "{{{_js_name}}}".replace(/\&amp\;/g, "&") }{{/ pl}}
});
/*{{#pl}}*/, pl: { id: "{{id}}", name: "{{{_js_name}}}".replace(/\&amp\;/g, "&") }/*{{/pl}}*/
});
/*]]>*/
</script>
{{^embedded}}
Expand Down

0 comments on commit b8a6bb3

Please sign in to comment.