Mobius1/MiniBar

View on GitHub

Showing 2 of 2 total issues

Avoid deeply nested control flow statements.
Open

                            if (mutation.type == 'childList') {
                                //  observe / unobserve items
                                for (var node of mutation.addedNodes) {
                                    mb.intersectionObserver.observe(node);
                                }
Severity: Major
Found in src/minibar.js - About 45 mins to fix

    Consider simplifying this complex logical expression.
    Open

                    if (items.length && "IntersectionObserver" in window) {
                        mb.items = items;
    
                        var threshold = [];
    
    
    Severity: Major
    Found in src/minibar.js - About 40 mins to fix
      Severity
      Category
      Status
      Source
      Language