all files / src/internal/popup/ utils.js

37.5% Statements 3/8
0% Branches 0/4
0% Functions 0/2
42.86% Lines 3/7
1 2 3 4 5 6 7 8 9 10 11 121×   1×   1×              
let zIndex = 20141223
 
export const getZIndex = () => zIndex++
 
export const getDOM = function (dom) {
  if (dom.nodeType === 3) {
    dom = dom.nextElementSibling || dom.nextSibling
    getDOM(dom)
  }
  return dom
}