@24i/bigscreen-sdk 1.0.34-alpha.2567 → 1.0.34-alpha.2568

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.34-alpha.2567",
3
+ "version": "1.0.34-alpha.2568",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,6 +21,8 @@ const DEFAULT_POLLING_INTERVAL = 15000;
21
21
  const DEFAULT_POLLING_TIMEOUT = 10000;
22
22
  const SUCCESS_STATUS_CODE = 200;
23
23
 
24
+ const CHECK_STATE_URL = 'https://8.8.8.8/';
25
+
24
26
  export abstract class DeviceBase<
25
27
  CustomEventMap extends EventMapType = {},
26
28
  EventMap extends EventMapType = DeviceEventMap & CustomEventMap,
@@ -83,7 +85,7 @@ export abstract class DeviceBase<
83
85
 
84
86
  doOnlineCheck = () => {
85
87
  const http = new XMLHttpRequest();
86
- http.open('HEAD', `${document.location.pathname}?param=${Date.now()}`);
88
+ http.open('HEAD', `${CHECK_STATE_URL}?param=${Date.now()}`);
87
89
  http.timeout = this.pollingTimeout || DEFAULT_POLLING_TIMEOUT;
88
90
  http.onreadystatechange = () => {
89
91
  const isConnected = http.status === SUCCESS_STATUS_CODE;