@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
package/package.json
CHANGED
@@ -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.
|
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;
|
package/routes/widgetLoader.js
CHANGED
@@ -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}
|
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
|
`;
|