@healthcatalyst/catalyst-docfx-template 1.0.124 → 1.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.124",
3
+ "version": "1.0.125",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
package/styles/main.js CHANGED
@@ -6,6 +6,8 @@ if (!String.prototype.startsWith) {
6
6
  };
7
7
  }
8
8
 
9
+ var profile;
10
+
9
11
  $(function() {
10
12
  // version dropdown
11
13
  var $version = $('#version').on('change', function() {
@@ -37,6 +39,16 @@ $(function() {
37
39
  $version.val(window.location.host);
38
40
  }
39
41
  });
42
+
43
+ $.ajax({
44
+ global: false,
45
+ url: "https://docs.healthcatalyst.com/api/profile",
46
+ dataType: "json",
47
+ success: function (data) {
48
+ profile = data;
49
+ console.log( profile );
50
+ }
51
+ });
40
52
  });
41
53
 
42
54
  // lightbox2 (Lokesh Dhakar, https://lokeshdhakar.com/projects/lightbox2, MIT License)
@@ -206,16 +218,4 @@ var messages = (function () {
206
218
  }
207
219
  return messages;
208
220
  })();
209
-
210
- var profile = (function () {
211
- $.ajax({
212
- async: false,
213
- global: false,
214
- url: "https://docs.healthcatalyst.com/api/profile",
215
- dataType: "json",
216
- success: function (data) {
217
- return data;
218
- }
219
- });
220
- })();
221
221