“; var device = “”; for ( var type in WFClientTypeDef) { if (window.matchMedia(WFClientTypeDef[type]).matches) { switch (type) { case “xlarge”: device = ‘desktop’; break; case “large”: device = ‘desktop’; break; case “medium”: device = ‘tab’; break; case “small”: device = ‘mobile’; break; } break; } } var writeOnDocument = true; […]