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 wixWindowFrontend from 'wix-window-frontend';23// ...45let viewMode = wixWindowFrontend.viewMode; // "Site"