Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript console error with angular markup in image src Reply To: console error with angular markup in image src

#252919
Mottie
Member

It looks like you figured out the problem of the images not working… wrong directory?

But now if you click on the page, a javascript error pops up:

functions.js: 170 Uncaught TypeError: Cannot read property ‘tagName’ of null

You can fix it by adding a check on the n parameter:

function isInPageLink(n) {
  return n && n.tagName.toLowerCase() === 'a' &&
      n.hash.length > 0 &&
      stripHash(n.href) === pageUrl;
}