[Support request] Error cssRules

Home Forums Support [Support request] Error cssRules

Home Forums Support Error cssRules

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1865941
    Timur

    Good day. This error occurs immediately after starting work:
    DOMException: Failed to read the ‘cssRules’ property from ‘CSSStyleSheet’: Cannot

    Error on line 177 content.js
    // CSS rules
    let css = []

    try {
    for (const sheet of Array.from(document.styleSheets)) {
    for (const rules of Array.from(sheet.cssRules)) {
    css.push(rules.cssText)

    if (css.length >= 3000) {
    break
    }
    }
    }

    #1866081
    David
    Staff
    Customer Support

    Hi there,

    where are you seeing the error?

    And have you tried disabling plugins to check for conflicts ?

    #1867488
    Timur

    I see an error when I try to refresh the page with devtools google chrome enabled, right after installing the theme, without unnecessary plugins

    #1867581
    David
    Staff
    Customer Support

    I am not seeing the error in the developers console. Neither am i seeing a request for the content.js which is the file throwing the error.

    Most probably a browser extension is causing the problem. Check by opening the site in a private/incognito browser or disabling all extensions.

    #1871107
    Timur

    yes, really, I didn’t think about it, thanks!

    #1871327
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.