@social-mail/social-mail-client 1.2.772 → 1.2.773

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.
@@ -29711,7 +29711,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "./dom/StyleHelper"], functi
29711
29711
  System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/entity/dist/models/TaskManager", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
29712
29712
  "use strict";
29713
29713
 
29714
- var __awaiter, __decorate, DISingleton, TaskManager, FetchBuilder, EmailContentDownloader;
29714
+ var __awaiter, __decorate, DISingleton, TaskManager, FetchBuilder, EmailContentDownloader_1, EmailContentDownloader;
29715
29715
  return {
29716
29716
  setters: [function (_tslib) {
29717
29717
  __awaiter = _tslib.__awaiter;
@@ -29724,13 +29724,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
29724
29724
  FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
29725
29725
  }],
29726
29726
  execute: function () {
29727
- EmailContentDownloader = class EmailContentDownloader extends TaskManager {
29727
+ EmailContentDownloader = EmailContentDownloader_1 = class EmailContentDownloader extends TaskManager {
29728
29728
  download(mce) {
29729
29729
  return this.downloadFromUrl(mce.htmlBodyUrl, mce.email);
29730
29730
  }
29731
29731
  downloadFromUrl(url, email) {
29732
29732
  return __awaiter(this, void 0, void 0, function* () {
29733
- if (!window.caches) {
29733
+ if (EmailContentDownloader_1) {
29734
29734
  const text = yield FetchBuilder.get(url).responseAsText();
29735
29735
  return email.htmlBody = text;
29736
29736
  }
@@ -29758,7 +29758,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
29758
29758
  });
29759
29759
  }
29760
29760
  };
29761
- EmailContentDownloader = __decorate([DISingleton({})], EmailContentDownloader);
29761
+ EmailContentDownloader = EmailContentDownloader_1 = __decorate([DISingleton({})], EmailContentDownloader);
29762
29762
  _export("default", EmailContentDownloader);
29763
29763
  }
29764
29764
  };