Differentiate live website and local website

Inside the page, you can access the javascript variable window.galaxyInfo.live_website that will be true on a published website, and false on the local website

console.log(window.galaxyInfo.live_website)

Last updated