Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
matubu committed Jun 2, 2024
1 parent ef149be commit b3e79d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ export async function highlightElement(elm, lang = elm.className.match(/shj-lang
* @param {ShjOptions} [opt={}] Customization options
*/
export let highlightAll = async (opt) =>
await Promise.all(
Promise.all(
Array.from(document.querySelectorAll('[class*="shj-lang-"]'))
.map(elem => highlightElement(elm, undefined, undefined, opt)))
.map(elm => highlightElement(elm, undefined, undefined, opt)))

/**
* @typedef {{ match: RegExp, type: string }
Expand Down

0 comments on commit b3e79d9

Please sign in to comment.