Name

global.CheckCurrentHub

Description

Common method to check if a remote instance is the current hub.

Script

var CheckCurrentHub = Class.create();
CheckCurrentHub.prototype = {
  initialize: function() {
  },
  
  isHubCurrent: function (hubId) {
  	var curHubInstanceId = GlideProperties.get('glide.apps.hub.current');
  	if(hubId == null || hubId == "" ||curHubInstanceId == null || curHubInstanceId == "")
  		return false;
  	return (hubId == curHubInstanceId);
  },
  
  type: 'CheckCurrentHub'
};

Sys ID

8ecda6013700210066512f3c8e41f10d

Offical Documentation

Official Docs: