@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.
@@ -53956,13 +53956,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
53956
53956
  }));
53957
53957
  }
53958
53958
  pending.push(() => __awaiter(this, void 0, void 0, function* () {
53959
- const stylerFile = yield this.cloudFileService.children(this.folder.appFileID, "styles/styler.css").firstOrDefault();
53960
- const stylerContent = stylerFile ? yield FetchBuilder.get(stylerFile.downloadUrl).responseAsText() : null;
53961
- const newStyle = StylerSet.instance.toString();
53962
- if (stylerContent !== newStyle) {
53963
- const stylerCSS = yield this.createFile("styler.css", newStyle);
53964
- yield this.addStyleSheet(doc, stylerCSS, "styles/styler.css");
53959
+ let stylerFile = yield this.cloudFileService.children(this.folder.appFileID, "styles/styler.css").firstOrDefault();
53960
+ if (!stylerFile) {
53961
+ stylerFile = yield this.createFile("styler.css", StylerSet.instance.toString());
53962
+ } else {
53963
+ const stylerContent = yield FetchBuilder.get(stylerFile.downloadUrl).responseAsText();
53964
+ const newStyle = StylerSet.instance.toString();
53965
+ if (stylerContent !== newStyle) {
53966
+ stylerFile = yield this.createFile("styler.css", newStyle);
53967
+ }
53965
53968
  }
53969
+ yield this.addStyleSheet(doc, stylerFile, "styles/styler.css");
53966
53970
  }));
53967
53971
  pending.push(() => __awaiter(this, void 0, void 0, function* () {
53968
53972
  let vars = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();