lyricat / Hotot

A Twitter Client
http://hotot.org
GNU Lesser General Public License v3.0
485 stars 130 forks source link

Validate template variables/don't print "undefined" #547

Closed AshKyd closed 8 years ago

AshKyd commented 11 years ago

This checks to make sure template variables are typeof "string", otherwise prints a blank value to prevent unintentional type conversion.

This fixes an issue where a user with no location set gets the title/tooltip "Name\n\nundefined".

I have tested this and it appears to be working well. Please let me know if there are any issues.

AshKyd commented 8 years ago

Closing this as it's no longer useful.