@social-mail/social-mail-client 1.2.549 → 1.2.550

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.
@@ -49375,13 +49375,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
49375
49375
  }));
49376
49376
  }
49377
49377
  pending.push(() => __awaiter(this, void 0, void 0, function* () {
49378
- const stylerFile = yield this.cloudFileService.children(this.folder.appFileID, "styles/styler.css").firstOrDefault();
49379
- const stylerContent = stylerFile ? yield FetchBuilder.get(stylerFile.downloadUrl).responseAsText() : null;
49380
- const newStyle = StylerSet.instance.toString();
49381
- if (stylerContent !== newStyle) {
49382
- const stylerCSS = yield this.createFile("styler.css", newStyle);
49383
- yield this.addStyleSheet(doc, stylerCSS, "styles/styler.css");
49378
+ let stylerFile = yield this.cloudFileService.children(this.folder.appFileID, "styles/styler.css").firstOrDefault();
49379
+ if (!stylerFile) {
49380
+ stylerFile = yield this.createFile("styler.css", StylerSet.instance.toString());
49381
+ } else {
49382
+ const stylerContent = yield FetchBuilder.get(stylerFile.downloadUrl).responseAsText();
49383
+ const newStyle = StylerSet.instance.toString();
49384
+ if (stylerContent !== newStyle) {
49385
+ stylerFile = yield this.createFile("styler.css", newStyle);
49386
+ }
49384
49387
  }
49388
+ yield this.addStyleSheet(doc, stylerFile, "styles/styler.css");
49385
49389
  }));
49386
49390
  pending.push(() => __awaiter(this, void 0, void 0, function* () {
49387
49391
  let vars = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();