@memberstack/dom 1.9.15 → 1.9.16

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.
@@ -41,8 +41,10 @@ var cookies_1 = require("../utils/cookies");
41
41
  var requests_1 = require("./requests");
42
42
  var auth_1 = require("../auth");
43
43
  var captchaReadyPromise = new Promise(function (resolve) {
44
- //@ts-ignore
45
- window._hcaptchaReady = resolve;
44
+ if (typeof window !== "undefined") {
45
+ //@ts-ignore
46
+ window._hcaptchaReady = resolve;
47
+ }
46
48
  });
47
49
  var methods = {
48
50
  openModal: methods_1.openModal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberstack/dom",
3
- "version": "1.9.15",
3
+ "version": "1.9.16",
4
4
  "main": "./lib/index.js",
5
5
  "files": [
6
6
  "lib/**/*"