Skip to content

Commit

Permalink
fix: fix Prism.js typo so languages not found / supported don't throw…
Browse files Browse the repository at this point in the history
… a JS error
  • Loading branch information
bolt-bot committed Sep 1, 2019
1 parent 44a2fbd commit a8c19f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export const panelsViewer = {

const templateHighlighted = Prism.highlight(
templateFormatted,
Prism.languages[panels[i].name.toLowerCase()] || 'markup'
Prism.languages[panels[i].name.toLowerCase()] ||
Prism.languages['markup']
// Prism.languages[panels[i].name.toLowerCase()],
);

Expand Down

0 comments on commit a8c19f9

Please sign in to comment.