@social-mail/social-mail-client 1.8.276 → 1.8.277

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.
@@ -57495,12 +57495,14 @@ System.register([], function (_export, _context) {
57495
57495
  setters: [],
57496
57496
  execute: function () {
57497
57497
  cdn = (_b = (_a = window.socialMail) === null || _a === void 0 ? void 0 : _a.cdn) !== null && _b !== void 0 ? _b : "";
57498
- if (cdn) {
57499
- cdn = "https://" + cdn;
57500
- }
57501
57498
  _export("CDN", CDN = {
57502
57499
  toCDNUrl(url) {
57503
- return cdn + url;
57500
+ if (/^https?\:\/\//i.test(url)) {
57501
+ const u = new URL(url);
57502
+ u.hostname = cdn;
57503
+ return u.toString();
57504
+ }
57505
+ return "https://" + cdn + url;
57504
57506
  }
57505
57507
  });
57506
57508
  }