Hacker News new | ask | show | jobs
by piptastic 3059 days ago
This encounters a javascript error on my profile:

  Uncaught TypeError: Cannot read property 'trim' of undefined
    at init.<anonymous> (inject.js:69)
    at init.<anonymous> (jquery.min.js:4)
    at l (jquery.min.js:4)
    at Object.add [as done] (jquery.min.js:4)
    at Array.<anonymous> (jquery.min.js:4)
    at Function.each (jquery.min.js:4)
    at Object.<anonymous> (jquery.min.js:4)
    at Function.Deferred (jquery.min.js:4)
    at Object.then (jquery.min.js:4)
    at init.<anonymous> (inject.js:59)
userSummary = $(".pv-top-card-section__summary-text").html().trim();
1 comments

Ah. Good catch. Do you have a really short summary/about paragraph under your picture?

It looks like it's trying to read that and can't find it.

I'll have to fix that.

Nope, mine is empty.
Yup. That's the issue. I'll have to make sure it checks for empty/short strings there.