snipe / downworthy

Source code for the Downworthy plugin
http://downworthy.snipe.net
208 stars 70 forks source link

Check empty options and support dynamically loaded content #33

Closed hankolsen closed 10 years ago

hankolsen commented 10 years ago

Added a check for initially empty options in background.js In content_script.js added an event listener to handle updates to the DOM when new content has been loaded into the page

hankolsen commented 10 years ago

If localStorage doesn't contain the option it returns null. So if the option hasn't been stored yet and you try to read it it is not set :)