@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.
- package/lib/methods/index.js +4 -2
- package/package.json +1 -1
package/lib/methods/index.js
CHANGED
|
@@ -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
|
-
|
|
45
|
-
|
|
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,
|