@jsenv/core 27.8.0 → 27.8.1
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.
|
@@ -319,7 +319,7 @@ const createWebSocketConnection = (websocketUrl, {
|
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
/* globals self */
|
|
322
|
-
const websocketScheme = self.location.protocol === "https" ? "wss" : "ws";
|
|
322
|
+
const websocketScheme = self.location.protocol === "https:" ? "wss" : "ws";
|
|
323
323
|
const websocketUrl = `${websocketScheme}://${self.location.host}${self.location.pathname}${self.location.search}`;
|
|
324
324
|
const websocketConnection = createWebSocketConnection(websocketUrl, {
|
|
325
325
|
retry: true,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { createWebSocketConnection } from "./web_socket_connection.js"
|
|
4
4
|
|
|
5
|
-
const websocketScheme = self.location.protocol === "https" ? "wss" : "ws"
|
|
5
|
+
const websocketScheme = self.location.protocol === "https:" ? "wss" : "ws"
|
|
6
6
|
const websocketUrl = `${websocketScheme}://${self.location.host}${self.location.pathname}${self.location.search}`
|
|
7
7
|
const websocketConnection = createWebSocketConnection(websocketUrl, {
|
|
8
8
|
retry: true,
|