dimanche 8 novembre 2015

javascript if statemant condition bug

If you are a admin please feel free to edit the title of this post, if you feel there is a more appropriate name for my issue.


Im creating a chrome extension that allows a user to save content from a loaded webpage.

When a new webpage is loaded, I check if it has valid content, then I create a new button node and insert it into the loaded webpage.

I then check if the content is not already in my database.

If the content is not found in my database, I modified the button to allow the user to save the content.

If the content is found in my database, I modified the button to allow the user to delete the content from the database.

below the content was not found in my database, I therefore want to have a save button. requesting a save button

The setButton function is where my issue lies.

I am sure that you can clearly see that the string "save" was parsed! Yet my break point 78 is executed!!!!!!! Why is that?

enter image description here

Aucun commentaire:

Enregistrer un commentaire