Материал из Module developer
// Assigning the variable my_resolution the phone type
var my_resolution = B.RESOLUTION_TYPE.PHONE;
// The condition for selecting by the device type
if (my_resolution == B.RESOLUTION_TYPE.PHONE)
{
// Connection of phone wigets
var Error = "ErrorChanel_Phone" + moduleID;
}