Home › Forums › JavaScript › console error with angular markup in image src › Reply To: console error with angular markup in image src
March 18, 2017 at 11:53 pm
#252919
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;
}