querysub 0.135.0 → 0.136.0

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": "querysub",
3
- "version": "0.135.0",
3
+ "version": "0.136.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -323,6 +323,10 @@ async function edgeNodeFunction(config: {
323
323
  // though, as we need to know the entryPaths to import)
324
324
  {
325
325
  let curHost = document.location.host;
326
+ // Always include the port
327
+ if (!curHost.includes(":")) {
328
+ curHost += ":443";
329
+ }
326
330
  let exactNode = edgeNodes.find(x => x.host === curHost);
327
331
  if (exactNode) {
328
332
  console.log(`MATCH exact host: ${getNodeDebugString(exactNode)}`);
@@ -83,9 +83,6 @@ export async function registerEdgeNode(config: {
83
83
  }
84
84
  registeredEdgeNode = true;
85
85
  let host = config.host;
86
- if (host.endsWith(":443")) {
87
- host = host.slice(0, -":443".length);
88
- }
89
86
 
90
87
  await waitForFirstTimeSync();
91
88