@tarojs/runtime 4.1.4 → 4.1.5

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.
@@ -689,7 +689,7 @@ function parseUrl(url = '') {
689
689
  result.search = matches[10] || '';
690
690
  result.hash = matches[12] || '';
691
691
  result.href = url;
692
- result.origin = result.protocol + '//' + result.hostname;
692
+ result.origin = result.protocol + '//' + result.hostname + (result.port ? `:${result.port}` : '');
693
693
  result.host = result.hostname + (result.port ? `:${result.port}` : '');
694
694
  return result;
695
695
  }