Window Suppress
Overview
This global JavaScript variable is available in all frameworks when writing custom JavaScript code in the global footer inject area. It's sole purpose is to determine if the current visitor is logged in to the Twenty Over Ten account associated with the page being visited.
How To Use
If you'd like to only have JavaScript run when you or the account holder is not editing, wrap your JavaScript code in an if statement that checks the value of window.suppress
. If the value is TRUE, that means that the user is logged in.
Example Code
if (!window.suppress) {
// Your custom code here
// Will only run when not logged in and editing
}