@tiledesk/tiledesk-server 2.4.93 → 2.4.94

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,8 +5,8 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.4.93
9
- - Updated messenger-connector to 0.1.15
8
+ # 2.4.94
9
+ - Updated WIDGET_LOCATION usage
10
10
 
11
11
  # 2.4.92
12
12
  - Updated messenger-connector to 0.1.14
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.4.93",
4
+ "version": "2.4.94",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -23,7 +23,9 @@ var config = require('../../config/database');
23
23
  var configGlobal = require('../../config/global');
24
24
 
25
25
  var widgetConfig = require('../../config/widget');
26
- var widgetTestLocation = process.env.WIDGET_TEST_LOCATION || widgetConfig.testLocation;
26
+ var widgetTestLocation = process.env.WIDGET_LOCATION || widgetConfig.testLocation;
27
+ widgetTestLocation = widgetTestLocation + "assets/twp/index.html";
28
+
27
29
 
28
30
 
29
31
  let configSecret = process.env.GLOBAL_SECRET || config.secret;
@@ -34,7 +34,7 @@ router.get('/v5/:project_id', function(req, res) {
34
34
  var js, fjs=d.getElementsByTagName(s)[0];
35
35
  if (d.getElementById(id)) return;
36
36
  js=d.createElement(s);
37
- js.id=id; js.async=true; js.src="${widgetLocation}/launch.js";
37
+ js.id=id; js.async=true; js.src="${widgetLocation}launch.js";
38
38
  fjs.parentNode.insertBefore(js, fjs);
39
39
  }(document,'script','tiledesk-jssdk'));
40
40
  `;