@social-mail/social-mail-client 1.9.94 → 1.9.95

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.
@@ -23724,30 +23724,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
23724
23724
  text: Bind.source(file, x => x.source.error)
23725
23725
  }))
23726
23726
  })));
23727
- try {
23728
- const ct = new CancelToken();
23729
- this.registerDisposable({
23730
- dispose: () => {
23731
- ct.cancel();
23727
+ this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
23728
+ try {
23729
+ const ct = new CancelToken();
23730
+ this.registerDisposable({
23731
+ dispose: () => {
23732
+ ct.cancel();
23733
+ }
23734
+ });
23735
+ const tasks = this.files.map(x => x.promise);
23736
+ const files = yield Promise.all(tasks);
23737
+ const extra = this.parameters.extra;
23738
+ this.close({
23739
+ files,
23740
+ extra
23741
+ });
23742
+ } catch (error) {
23743
+ if (CancelToken.isCancelled(error)) {
23744
+ this.cancel(error);
23745
+ return;
23732
23746
  }
23733
- });
23734
- const tasks = this.files.map(x => x.promise);
23735
- const files = yield Promise.all(tasks);
23736
- const extra = this.parameters.extra;
23737
- this.close({
23738
- files,
23739
- extra
23740
- });
23741
- } catch (error) {
23742
- if (CancelToken.isCancelled(error)) {
23747
+ yield PopupService.alert({
23748
+ message: error
23749
+ });
23743
23750
  this.cancel(error);
23744
- return;
23745
23751
  }
23746
- yield PopupService.alert({
23747
- message: error
23748
- });
23749
- this.cancel(error);
23750
- }
23752
+ }));
23751
23753
  });
23752
23754
  }
23753
23755
  };