For some reason my generator keeps getting an error about previousSibling?? No idea what it is or what I did to affect it I haven’t updated recent besides just quickly adding a word then removing it to just see if it’d stop the error since I can’t tell what I’m supposed to be looking for since the error doesn’t provide a line

  • perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 days ago

    Thanks! I’ve just fixed a bug in the be-plugin which was the cause of this. But it looks like there’s a bug in the have-plugin, and that’s not mine. Whoever owns it needs to change this:

    let thisNode = document.querySelector(`.${elementId}`);
    

    to this:

    let thisNode = document.querySelector(`.${elementId}`);
    if(!thisNode) return;
    

    I.e. just add if(!thisNode) return; below it.