• Resolved settore8

    (@settore8)


    In molte installazioni WordPress ricevo questo errore JS in console: Uncaught TypeError: t[n].indexOf is not a function. L’errore è nei file di autoblocking. PLiugin installato alla versione 3.11.2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter settore8

    (@settore8)

    Dopo ore di debug ho capito che il problema si verifica con l’utilizzo di sistemi icone “Icon sprites”. Potete risolvere?

    <svg>
    <use xlink:href="#my-icon" x="40" y="40" />
    </svg>
    Thread Starter settore8

    (@settore8)

    POtrebbe essere sufficiente che aggiungiate nella function dove verificate l’indexOf di cdn.iubenda.com ecc che sia una stringa. Perchè l’svg use nel vostro script ritorna un object.

    function t(t, o) {
    const n = o ||
    'src';
    return e(t, n) && typeof t[n] === 'string' &&
    (
    - 1 !== t[n].indexOf('cdn.iubenda.com') ||
    - 1 !== t[n].indexOf('www.iubenda.com') ||
    - 1 !== t[n].indexOf('cs.iubenda.com')
    )
    }
    Plugin Support daniub

    (@daniub)

    Salve,

    l’errore confermiamo che non comporta malfunzionamenti nella nostra soluzione.

    Confermiamo inoltre che abbiamo gia capito la causa e nei prossimi giorni rilasceremo un aggiornamento che risolverà il problema.

    Sarà mia cura informarvi con la massima celerità ??

    • This reply was modified 3 months, 3 weeks ago by daniub.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.