@peassoft/mnr-web-topline 0.3.2 → 0.3.4

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.
@@ -12,7 +12,7 @@ export function getApiBaseUrl() {
12
12
  */
13
13
  export function getWebsocketUrl() {
14
14
  if (window.location.hostname === 'localhost') {
15
- return 'wss://localhost:5003/ws';
15
+ return 'ws://localhost:5003/ws';
16
16
  }
17
17
  return `wss://${window.location.hostname}/ws`;
18
18
  }
@@ -130,7 +130,7 @@ export default function Shell() {
130
130
  openWebsocket();
131
131
  }
132
132
  } else {
133
- timer = setTimeout(closeWebsocket, 30000);
133
+ timer = window.setTimeout(closeWebsocket, 30000);
134
134
  }
135
135
  }
136
136
  function handleVisibilityChange() {
@@ -12,7 +12,7 @@ export function getApiBaseUrl() {
12
12
  */
13
13
  export function getWebsocketUrl() {
14
14
  if (window.location.hostname === 'localhost') {
15
- return 'wss://localhost:5003/ws';
15
+ return 'ws://localhost:5003/ws';
16
16
  }
17
17
  return `wss://${window.location.hostname}/ws`;
18
18
  }
@@ -130,7 +130,7 @@ export default function Shell() {
130
130
  openWebsocket();
131
131
  }
132
132
  } else {
133
- timer = setTimeout(closeWebsocket, 30000);
133
+ timer = window.setTimeout(closeWebsocket, 30000);
134
134
  }
135
135
  }
136
136
  function handleVisibilityChange() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peassoft/mnr-web-topline",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Peassoft Topline widget for mem'n'rev web applications",
5
5
  "type": "module",
6
6
  "exports": {
@@ -62,7 +62,7 @@
62
62
  "webpack-dev-server": "^5.2.0"
63
63
  },
64
64
  "dependencies": {
65
- "@memnrev/web-error": "^0.3.0",
65
+ "@memnrev/web-error": "^0.4.1",
66
66
  "email-validator": "^2.0.4",
67
67
  "md5": "^2.3.0",
68
68
  "react-error-boundary": "^6.0.0",