@snapshot-labs/snapshot.js 0.11.21 → 0.11.22

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.
@@ -366,7 +366,7 @@ var Client = /** @class */ (function () {
366
366
  if (!message.timestamp)
367
367
  message.timestamp = parseInt((Date.now() / 1e3).toFixed());
368
368
  domainData = __assign({}, domain);
369
- if (!((_a = window === null || window === void 0 ? void 0 : window.ethereum) === null || _a === void 0 ? void 0 : _a.isTrust)) return [3 /*break*/, 2];
369
+ if (!(typeof window !== 'undefined' && ((_a = window.ethereum) === null || _a === void 0 ? void 0 : _a.isTrust))) return [3 /*break*/, 2];
370
370
  _b = domainData;
371
371
  return [4 /*yield*/, signer.provider.getNetwork()];
372
372
  case 1:
@@ -356,7 +356,7 @@ var Client = /** @class */ (function () {
356
356
  if (!message.timestamp)
357
357
  message.timestamp = parseInt((Date.now() / 1e3).toFixed());
358
358
  domainData = __assign({}, domain);
359
- if (!((_a = window === null || window === void 0 ? void 0 : window.ethereum) === null || _a === void 0 ? void 0 : _a.isTrust)) return [3 /*break*/, 2];
359
+ if (!(typeof window !== 'undefined' && ((_a = window.ethereum) === null || _a === void 0 ? void 0 : _a.isTrust))) return [3 /*break*/, 2];
360
360
  _b = domainData;
361
361
  return [4 /*yield*/, signer.provider.getNetwork()];
362
362
  case 1: