@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.
@@ -23903,7 +23903,7 @@ System.register(["tslib", "./http/JsonError"], function (_export, _context) {
23903
23903
  System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/entity/dist/models/TaskManager", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
23904
23904
  "use strict";
23905
23905
 
23906
- var __awaiter, __decorate, DISingleton, TaskManager, FetchBuilder, EmailContentDownloader;
23906
+ var __awaiter, __decorate, DISingleton, TaskManager, FetchBuilder, EmailContentDownloader_1, EmailContentDownloader;
23907
23907
  return {
23908
23908
  setters: [function (_tslib) {
23909
23909
  __awaiter = _tslib.__awaiter;
@@ -23916,13 +23916,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
23916
23916
  FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
23917
23917
  }],
23918
23918
  execute: function () {
23919
- EmailContentDownloader = class EmailContentDownloader extends TaskManager {
23919
+ EmailContentDownloader = EmailContentDownloader_1 = class EmailContentDownloader extends TaskManager {
23920
23920
  download(mce) {
23921
23921
  return this.downloadFromUrl(mce.htmlBodyUrl, mce.email);
23922
23922
  }
23923
23923
  downloadFromUrl(url, email) {
23924
23924
  return __awaiter(this, void 0, void 0, function* () {
23925
- if (!window.caches) {
23925
+ if (EmailContentDownloader_1) {
23926
23926
  const text = yield FetchBuilder.get(url).responseAsText();
23927
23927
  return email.htmlBody = text;
23928
23928
  }
@@ -23950,7 +23950,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
23950
23950
  });
23951
23951
  }
23952
23952
  };
23953
- EmailContentDownloader = __decorate([DISingleton({})], EmailContentDownloader);
23953
+ EmailContentDownloader = EmailContentDownloader_1 = __decorate([DISingleton({})], EmailContentDownloader);
23954
23954
  _export("default", EmailContentDownloader);
23955
23955
  }
23956
23956
  };