Gets which mode the site is currently being viewed in.
viewMode property gets either:
"Preview": When previewing the site using the Preview button in the Editor.
"Site": When viewing the published site.
Was this helpful?
Get a window's view mode
1import wixWindow from 'wix-window';23// ...45let viewMode = wixWindow.viewMode; // "Site"