@denevads/dnv-smo 1.0.31 → 1.0.33
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/smo.js +5 -2
- package/package.json +2 -2
- package/src/smo.ts +5 -2
package/dist/smo.js
CHANGED
|
@@ -22,8 +22,11 @@ var SMO = /** @class */ (function () {
|
|
|
22
22
|
while (match = search.exec(query)) {
|
|
23
23
|
this.vars[decode(match[1])] = decode(match[2]);
|
|
24
24
|
}
|
|
25
|
+
console.log("vars->", JSON.stringify(this.vars));
|
|
25
26
|
// @ts-ignore
|
|
26
|
-
|
|
27
|
+
console.log("resultados " + window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
if (window.objJS != undefined && this.vars.ontop !== undefined && this.vars.ontop !== "") {
|
|
27
30
|
// @ts-ignore
|
|
28
31
|
console.log("Existe objJS en window -->" + JSON.stringify(window.objJS));
|
|
29
32
|
// @ts-ignore
|
|
@@ -637,7 +640,7 @@ var Utils = /** @class */ (function () {
|
|
|
637
640
|
Utils.prototype.sendToParent = function (obj, dest) {
|
|
638
641
|
console.log('sendToParent->', JSON.stringify(obj));
|
|
639
642
|
//@ts-ignore
|
|
640
|
-
if (window.objJS != undefined &&
|
|
643
|
+
if (window.objJS != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != "") {
|
|
641
644
|
switch (obj.target) {
|
|
642
645
|
case "Dnv.smoCallbacks.onSmoLoad":
|
|
643
646
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@denevads/dnv-smo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "SMO module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"mitt": "^3.0.0",
|
|
22
|
-
"rxjs": "^7.
|
|
22
|
+
"rxjs": "^7.8.1"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/smo.ts
CHANGED
|
@@ -42,8 +42,11 @@ export class SMO {
|
|
|
42
42
|
while (match = search.exec(query)) {
|
|
43
43
|
this.vars[decode(match[1])] = decode(match[2]);
|
|
44
44
|
}
|
|
45
|
+
console.log("vars->",JSON.stringify(this.vars));
|
|
45
46
|
// @ts-ignore
|
|
46
|
-
|
|
47
|
+
console.log( "resultados " +window.objJS != undefined + " " + window !== window.parent + " " + this.vars.ontop != undefined + " " + this.vars.ontop != "");
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
if(window.objJS != undefined && this.vars.ontop !== undefined && this.vars.ontop !== ""){
|
|
47
50
|
// @ts-ignore
|
|
48
51
|
console.log("Existe objJS en window -->" + JSON.stringify(window.objJS));
|
|
49
52
|
// @ts-ignore
|
|
@@ -662,7 +665,7 @@ class Utils{
|
|
|
662
665
|
sendToParent(obj:any,dest:string){
|
|
663
666
|
console.log('sendToParent->',JSON.stringify(obj));
|
|
664
667
|
//@ts-ignore
|
|
665
|
-
if(window.objJS != undefined
|
|
668
|
+
if(window.objJS != undefined && this.smo.vars.ontop != undefined && this.smo.vars.ontop != ""){
|
|
666
669
|
switch (obj.target) {
|
|
667
670
|
case "Dnv.smoCallbacks.onSmoLoad":
|
|
668
671
|
// @ts-ignore
|