Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Nov 15, 2021
1 parent 36af67a commit ed1d7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wc-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ export class WCCodeMirror extends HTMLElement {
}

const linkChanged = (e) => {
return e.type === "childList" &&
(Array.from(e.addedNodes).some((e) => e.tagName === "LINK") ||
Array.from(e.removedNodes).some((e) => e.tagName === "LINK"))
return e.type === 'childList' &&
(Array.from(e.addedNodes).some((e) => e.tagName === 'LINK') ||
Array.from(e.removedNodes).some((e) => e.tagName === 'LINK'))
}

this.__observer = new MutationObserver((mutationsList, observer) => {
if (mutationsList.some(linkChanged)) {
this.refreshStyles();
this.refreshStyles()
}
this.lookupInnerScript((data) => {
this.value = data
Expand Down

0 comments on commit ed1d7f2

Please sign in to comment.