ouisys-engine 2.1.59 → 2.1.63

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.
@@ -180,6 +180,13 @@ var startEvinaAgency = function startEvinaAgency(config) {
180
180
  return x.text();
181
181
  }).then(function (txt) {
182
182
  return (0, _loadScriptInnerHtml.default)(txt);
183
+ }).then(function () {
184
+ console.log('Ev ready');
185
+ var event = new Event('DCBProtectRun');
186
+
187
+ if (typeof window != "undefined") {
188
+ document.dispatchEvent(event);
189
+ }
183
190
  });
184
191
  };
185
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.59",
3
+ "version": "2.1.63",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -41,7 +41,14 @@ export const startEvinaAgency = (config: IConfig)=>{
41
41
  const newHost = getHost({host});
42
42
  const rockmanId = window.pac_analytics.visitor.rockmanId;
43
43
  const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
44
- fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt));
44
+
45
+ fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt)).then(()=>{
46
+ console.log('Ev ready');
47
+ let event = new Event('DCBProtectRun');
48
+ if(typeof window != "undefined"){
49
+ document.dispatchEvent(event);
50
+ }
51
+ });
45
52
  }
46
53
 
47
54
  export const mockedMSISDNEntrySuccess : IMoRedirFlowReducerState = {