Detecting chrome incognito window/tab?

I have a macro that works fine on chrome browser. I wanted to disable it in incognito window/tab. Is there a way to detect if current front chrome window/tab is incognito mode?