MCPcopy
hub / github.com/liriliri/eruda / checkEl

Method checkEl

src/Resources/Resources.js:398–411  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

396 if (isErudaEl(mutation.target)) return
397
398 const checkEl = (el) => {
399 const tagName = getLowerCaseTagName(el)
400 switch (tagName) {
401 case 'script':
402 this.refreshScript()
403 break
404 case 'img':
405 this.refreshImage()
406 break
407 case 'link':
408 this.refreshStylesheet()
409 break
410 }
411 }
412
413 if (mutation.type === 'attributes') {
414 checkEl(mutation.target)

Callers

nothing calls this directly

Calls 4

refreshScriptMethod · 0.95
refreshImageMethod · 0.95
refreshStylesheetMethod · 0.95
getLowerCaseTagNameFunction · 0.85

Tested by

no test coverage detected