@healthcatalyst/catalyst-docfx-template 1.0.83 → 1.0.85

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.83",
3
+ "version": "1.0.85",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
package/styles/main.js CHANGED
@@ -138,12 +138,12 @@ copyCode.on('success', function(event) {
138
138
 
139
139
  var terms = (function () {
140
140
  var json = null;
141
- var baseUrl = window.location.origin;
142
- // console.log(baseUrl);
141
+ var pathname = window.location.pathname;
142
+ // console.log(pathname);
143
143
  $.ajax({
144
144
  async: false,
145
145
  global: false,
146
- url: baseUrl + "/sourcedContent/terms.json",
146
+ url: pathname + "/sourcedContent/terms.json",
147
147
  dataType: "json",
148
148
  success: function (data) {
149
149
  json = data;
@@ -166,12 +166,12 @@ var terms = (function () {
166
166
 
167
167
  var messages = (function () {
168
168
  var json = null;
169
- var baseUrl = window.location.origin;
170
- // console.log(baseUrl)
169
+ var pathname = window.location.pathname;
170
+ // console.log(pathname)
171
171
  $.ajax({
172
172
  async: false,
173
173
  global: false,
174
- url: baseUrl + "/sourcedContent/messages.json",
174
+ url: pathname + "/sourcedContent/messages.json",
175
175
  dataType: "json",
176
176
  success: function (data) {
177
177
  json = data;