Name

global.SdlcDeviceAndBrowserDetectionUtils

Description

No description available

Script

var SdlcDeviceAndBrowserDetectionUtils = Class.create();
SdlcDeviceAndBrowserDetectionUtils.prototype = {
  initialize: function () {
      //
  },

  isDesktop: function() {
  	var browser_type = this.browserType();
      return (['mobile', 'tablet'].indexOf(browser_type) >= 0) ? false : true;
  },

  browserType: function() {
  	var browser_type = 'not_found';

  	if (GlideMobileExtensions.getDeviceType() == 'doctype') {
  		browser_type = 'html5';
  	} else if (GlideMobileExtensions.getDeviceType() == 'mobile') {
  		browser_type = 'mobile';
  	} else if (GlideMobileExtensions.getDeviceType() == 'tablet') {
  		browser_type = 'tablet';
  	} else if (!GlideMobileExtensions.getDeviceType()) {
  		if (browser.isMSIE8 || browser.isMSIE7 || browser.isMSIE6) {
  			browser_type = 'ie8orless';
  		}
  	}

  	return browser_type;
  },

  type: 'SdlcDeviceAndBrowserDetectionUtils'
};

Sys ID

1958a4f67f20310013d091679ffa9171

Offical Documentation

Official Docs: