@everymatrix/casino-random-game 1.5.5 → 1.6.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-random-game",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"main": "dist/casino-random-game.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "e4b57a534bdee7d09fc53a7b49e31338bc1a3f00"
|
|
40
40
|
}
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
window.postMessage({ type: 'RandomWidgetState', state: true }, window.location.href);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
const shuffle = (array):Array<any> => {
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
const playGame = ():void => {
|
|
102
103
|
window.postMessage({ type: gameevent, gameId: randomGame.gId || randomGame.id }, window.location.href);
|
|
103
104
|
show = false;
|
|
105
|
+
window.postMessage({ type: 'RandomWidgetState', state: false }, window.location.href);
|
|
104
106
|
|
|
105
107
|
//Analytics event
|
|
106
108
|
if(typeof gtag == 'function'){
|
|
@@ -108,11 +110,12 @@
|
|
|
108
110
|
'context': 'RandomGameWidget',
|
|
109
111
|
'gameId' : `${randomGame.gId || randomGame.id}`
|
|
110
112
|
});
|
|
111
|
-
}
|
|
113
|
+
}
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
const closeModal = ():void => {
|
|
115
117
|
show = false;
|
|
118
|
+
window.postMessage({ type: 'RandomWidgetState', state: show }, window.location.href);
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
const fetchGameList = ():void => {
|