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 CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foris",
3
- "version": "5.3.0-beta.1bb8abd6",
3
+ "version": "5.3.0-beta.fd25ae04",
4
4
  "description": "Set of components and utils for Foris and its plugins.",
5
5
  "author": "CZ.NIC, z.s.p.o.",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (C) 2020-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
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}/foris-ws`
14
- : `${PROTOCOL}://${window.location.hostname}:${9081}`;
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