foris 5.3.0-beta.1bb8abd6 → 5.3.0-beta.fd25ae04
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/foris-5.3.0.tgz +0 -0
- package/package.json +1 -1
- package/webSockets/WebSockets.js +5 -3
package/foris-5.3.0.tgz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/webSockets/WebSockets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2020-
|
|
2
|
+
* Copyright (C) 2020-2022 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
|
3
3
|
*
|
|
4
4
|
* This is free software, licensed under the GNU General Public License v3.
|
|
5
5
|
* See /LICENSE for more information.
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
const PROTOCOL = window.location.protocol === "http:" ? "ws" : "wss";
|
|
11
11
|
|
|
12
12
|
const URL = process.env.LIGHTTPD
|
|
13
|
-
? `${PROTOCOL}://${window.location.host}
|
|
14
|
-
|
|
13
|
+
? `${PROTOCOL}://${window.location.host}/${
|
|
14
|
+
process.env.WSPATH || "foris-ws"
|
|
15
|
+
}`
|
|
16
|
+
: `${PROTOCOL}://${window.location.hostname}:9081`;
|
|
15
17
|
|
|
16
18
|
const WAITING_FOR_CONNECTION_TIMEOUT = 500;
|
|
17
19
|
|