Hide connect module from pdf export

Hi there,

in my Connect app I am using a web panel on location “atl.general” to show up at the top of any page.

Is it possible to hide this web panel in a pdf export? Since my web panel content is unnecessary in pdf, I would like to keep it out. How do I notice if my module is rendered in a pdf context, so I can act on it in my code?

Thanks in advance!