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