How can I locate and replace my last Flodesk pop-up code?

I have followed this formula:

T**heme > Current theme > Customize > Edit code > theme.liquid

Pasted the popup code snippet immediately before the tag.

All worked well for the first pop-up.

However, I do not see where my last code is in order to delete it and replace it.

I can see where the first head tag is, but I don’t know where my last code ends in order to replace it with my new pop-up code.

Is there a way to revert back to the original code so that it’s easier? Or a way to know where my last pop-up code ends so that I can replace it without deleting any other important information?

@dmd_88 - you can revert file back to previous version, check this link