Differentiate live website and local website
This should be used only for very specific features. The local website is supposed to be an accurate preview for the client of what will be published and visible on the live website. So you should avoid having different behavior on the preview website and the live 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