chore: fix typo

pull/1268/head
Divyansh Singh 3 years ago
parent bb11d0f178
commit 43c89d66c0

@ -2,7 +2,7 @@ import { inBrowser } from '../utils.js'
export function useCopyCode() { export function useCopyCode() {
if (inBrowser) { if (inBrowser) {
const timeoutIdMap: Map<HTMLElement, number> = new Map() const timeoutIdMap: Map<HTMLElement, NodeJS.Timeout> = new Map()
window.addEventListener('click', (e) => { window.addEventListener('click', (e) => {
const el = e.target as HTMLElement const el = e.target as HTMLElement
if (el.matches('div[class*="language-"] > button.copy')) { if (el.matches('div[class*="language-"] > button.copy')) {

Loading…
Cancel
Save