• LiamMcArthur

    (@liammcarthur)


    I’m receiving the following Javascript error throughout the entire admin of my website with the plugin enabled:

    Uncaught TypeError: Cannot set property ‘innerHTML’ of null

    The error looks to be getting caused by this bit of Javascript:

    <script>
        const statusContainer = document.getElementById('ampforwp-network-status');
        if(! navigator.onLine) {
            statusContainer.innerHTML = "<h1 style='color:#E91E63'> You seems to have been Offline. Please connect to network to continue the installation.</h1>";
        } else {
            statusContainer.innerHTML =  "";
        }
    </script>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Admin Javascript Error’ is closed to new replies.