We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fd3dd commit 3da240bCopy full SHA for 3da240b
Client-Side Components/Client Scripts/Show Current Domain/DomainCheckUtil.js
@@ -0,0 +1,15 @@
1
+var DomainCheckUtil = Class.create();
2
+DomainCheckUtil.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
3
+ //get current domain of user session
4
+ getCurrentDomainName: function() {
5
+ var sessionDomainId = gs.getSession().getCurrentDomainID();
6
+ var gr = new GlideRecord('domain');
7
+ if (gr.get(sessionDomainId)){
8
+ return gr.name;
9
+ }
10
+ //Return global domain name
11
+ return 'Global';
12
+ },
13
+
14
+ type: 'DomainCheckUtil'
15
+});
0 commit comments