ouisys-engine 2.1.53 → 2.1.56
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/dist/api/index.js
CHANGED
|
@@ -688,7 +688,7 @@ var RealTallyman = {
|
|
|
688
688
|
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1 ? true : false;
|
|
689
689
|
newHost = isDMB ? "de.tallymans.com" : host;
|
|
690
690
|
_context22.next = 4;
|
|
691
|
-
return fetch("https://".concat(newHost, "/tallyman/helper/?action=google-captcha-v3-config&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&domain=
|
|
691
|
+
return fetch("https://".concat(newHost, "/tallyman/helper/?action=google-captcha-v3-config&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&domain=").concat(domain)).then(function (x) {
|
|
692
692
|
return x.json();
|
|
693
693
|
});
|
|
694
694
|
|
|
@@ -127,7 +127,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
127
127
|
window.location.href = redirectUrl;
|
|
128
128
|
}, 0);
|
|
129
129
|
}
|
|
130
|
-
},
|
|
130
|
+
}, 100);
|
|
131
131
|
} else {
|
|
132
132
|
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
133
133
|
redirect_url: redirectUrl
|
|
@@ -135,7 +135,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
135
135
|
|
|
136
136
|
setTimeout(function () {
|
|
137
137
|
window.location.href = redirectUrl;
|
|
138
|
-
},
|
|
138
|
+
}, 0);
|
|
139
139
|
}
|
|
140
140
|
} else {
|
|
141
141
|
dispatch({
|
|
@@ -207,7 +207,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
207
207
|
|
|
208
208
|
setTimeout(function () {
|
|
209
209
|
window.location.href = _redirect_url;
|
|
210
|
-
},
|
|
210
|
+
}, 0);
|
|
211
211
|
} else {
|
|
212
212
|
dispatch({
|
|
213
213
|
type: "GET_REDIRECT_URL",
|
|
@@ -17,7 +17,6 @@ var loadScriptSrc = function loadScriptSrc(_ref) {
|
|
|
17
17
|
script.src = url;
|
|
18
18
|
var headElem = document.getElementsByTagName('head')[0];
|
|
19
19
|
headElem.insertBefore(script, headElem.firstChild);
|
|
20
|
-
console.log('loadScript');
|
|
21
20
|
|
|
22
21
|
script.onload = function () {
|
|
23
22
|
var scriptInner = "\n grecaptcha.ready(function() {\n grecaptcha.execute(\"".concat(key, "\", {action: 'submit'}).then(function(token) {\n // To be used by tallyman\n window.reCaptchaToken = token;\n console.log(\"-------\" + token);\n });\n });\n ");
|
package/package.json
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -217,7 +217,7 @@ export const RealTallyman:ITallyman = {
|
|
|
217
217
|
getGoogleCaptcha:async(host: string, country: string, slug: string, device:string, domain: string):Promise<IGoogleReCaptcha>=>{
|
|
218
218
|
const isDMB = (window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1) ? true : false;
|
|
219
219
|
const newHost = isDMB ? "de.tallymans.com" : host;
|
|
220
|
-
return await fetch(`https://${newHost}/tallyman/helper/?action=google-captcha-v3-config&country=${country}&slug=${slug}&device=${device}&domain
|
|
220
|
+
return await fetch(`https://${newHost}/tallyman/helper/?action=google-captcha-v3-config&country=${country}&slug=${slug}&device=${device}&domain=${domain}`).then(x => x.json())
|
|
221
221
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -47,12 +47,12 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
|
|
|
47
47
|
window.location.href = redirectUrl;
|
|
48
48
|
}, 0);
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, 100);
|
|
51
51
|
}else{
|
|
52
52
|
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
53
53
|
setTimeout(() => {
|
|
54
54
|
window.location.href = redirectUrl;
|
|
55
|
-
},
|
|
55
|
+
}, 0);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
|
|
@@ -104,7 +104,7 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
|
|
|
104
104
|
|
|
105
105
|
setTimeout(() => {
|
|
106
106
|
window.location.href = redirect_url;
|
|
107
|
-
},
|
|
107
|
+
}, 0);
|
|
108
108
|
}else{
|
|
109
109
|
dispatch({
|
|
110
110
|
type: "GET_REDIRECT_URL",
|