-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.patch
40 lines (36 loc) · 1.71 KB
/
ui.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff -Naur ignore/ui-original/webpack.js ui/webpack.js
--- ignore/ui-original/webpack.js 2021-05-20 17:53:09.745683925 -0700
+++ ui/webpack.js 2021-05-23 18:52:19.125035511 -0700
@@ -59105,7 +59105,8 @@
// CONCATENATED MODULE: ./helpers/loader/loader.js
-var baseDomainUrl = "escapepod.local";
+var baseDomainUrl = (function (host) { host !== 'window.location.host' ? host : window.location.host })('PI_ESCAPEPOD_HOST')
+
function getBaseURL(_ref) {
var requestPath = _ref.requestPath,
_ref$https = _ref.https,
@@ -59304,7 +59305,7 @@
});
};
var vectorDownloadStatus = function vectorDownloadStatus(onMessage, onError) {
- var socket = new WebSocket('ws://escapepod.local/downloadstatus'); // Listen for messages
+ var socket = new WebSocket('ws://' + baseDomainUrl + '/downloadstatus'); // Listen for messages
socket.addEventListener('message', onMessage); // respond to errors
@@ -59474,7 +59475,7 @@
successCB: function successCB(data) {
var fileNames = data.names;
var latestFile = fileNames[fileNames.length - 1];
- var fileURL = "http://escapepod.local/logs/" + latestFile;
+ var fileURL = "http://" + window.location.host + "/logs/" + latestFile;
download_executeURLFileDownload(fileURL, latestFile);
onCompleteCB();
},
@@ -62195,7 +62196,7 @@
}, {
key: "openSocket",
value: function openSocket() {
- var socket = new WebSocket('ws://escapepod.local/logs'); // Connection opened
+ var socket = new WebSocket('ws://' + window.location.host + '/logs'); // Connection opened
// socket.addEventListener('open', function (event) {
// socket.send('Hello Server!');
// });