Add-on Help
I am trying to make an Add-on to help simplify daily things I do at work. I have already made the addon and it works fine, but I'm trying to improve it but I've run into issues. The addon's popup window scrapes data from our ticketing system, then shows the data that it found and has a print button. That print button opens a new window and prompts to print, then closes automatically. I am printing a receipt with data pertaining to the user, their computer, and location. For certain tickets, I want to hide/remove certain fields, but for other tickets keep those fields. I already have it set up to always show the fields whether there is data there or not, but for this one specific ticket type I want those fields to be hidden. Right now, the version of this addon for Chromium browsers works fine and does what I want it to, but when I try to set it up for Firefox, it does not detect the ticket's item type. Even manually setting the variables to true does not hide the fields. Am I putting the logic for this in the wrong file? Or is it not being injected properly? The popup.js calls content.js, then when I print, it calls print.js and print.html. https://addons.mozilla.org/en-US/firefox/addon/otdi-device-receipt/