Scoped GlideUICompatibility - getCompatibility()

Returns the terms "block" or "allow" based upon the browser version.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String Either block or allow
UICompatibility = new GlideUICompatibility(gs.getCurrentScopeName());
var blockOrAllow = UICompatibility.getCompatibility();
gs.info(blockOrAllow);

Output: allow