buckyos 0.7.150 → 0.7.151

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.
@@ -28043,7 +28043,8 @@ const browserProvider = {
28043
28043
  let settled = false;
28044
28044
  const cleanup = () => {
28045
28045
  var _a3;
28046
- window.removeEventListener("focus", onFocus);
28046
+ input.removeEventListener("change", onChange);
28047
+ input.removeEventListener("cancel", onCancel);
28047
28048
  (_a3 = options.signal) == null ? void 0 : _a3.removeEventListener("abort", onAbort);
28048
28049
  };
28049
28050
  const fail2 = (error) => {
@@ -28054,13 +28055,8 @@ const browserProvider = {
28054
28055
  reject(error);
28055
28056
  };
28056
28057
  const onAbort = () => fail2(new NdmError("USER_CANCELLED", "Import cancelled"));
28057
- const onFocus = () => {
28058
- setTimeout(() => {
28059
- if (!settled)
28060
- fail2(new NdmError("USER_CANCELLED", "User cancelled file selection"));
28061
- }, 500);
28062
- };
28063
- input.addEventListener("change", () => {
28058
+ const onCancel = () => fail2(new NdmError("USER_CANCELLED", "User cancelled file selection"));
28059
+ const onChange = () => {
28064
28060
  if (settled)
28065
28061
  return;
28066
28062
  const files = input.files;
@@ -28071,9 +28067,9 @@ const browserProvider = {
28071
28067
  settled = true;
28072
28068
  cleanup();
28073
28069
  resolve(Array.from(files));
28074
- });
28075
- input.addEventListener("cancel", onAbort);
28076
- window.addEventListener("focus", onFocus);
28070
+ };
28071
+ input.addEventListener("change", onChange);
28072
+ input.addEventListener("cancel", onCancel);
28077
28073
  if ((_a2 = options.signal) == null ? void 0 : _a2.aborted) {
28078
28074
  onAbort();
28079
28075
  return;
@@ -30222,4 +30218,4 @@ export {
30222
30218
  NOTIFY_CHOICE_CONTROL_ID as y,
30223
30219
  NOTIFY_TEXT_CONTROL_ID as z
30224
30220
  };
30225
- //# sourceMappingURL=executor_client-84d7a70d.mjs.map
30221
+ //# sourceMappingURL=executor_client-dde508e1.mjs.map