@everymatrix/casino-random-game 1.5.6 → 1.7.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.5.6",
3
+ "version": "1.7.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": "18b817f66a008871bf85a5a004a749dca5111add"
39
+ "gitHead": "b405cf7bcce97b06567550e59f40f2d310be97af"
40
40
  }
@@ -55,6 +55,7 @@
55
55
  show = true;
56
56
  }
57
57
 
58
+ let intervalId;
58
59
  const getRandomGame = (refresh?:boolean):void => {
59
60
  if(filteredrandomgamecategories){
60
61
  do {
@@ -64,13 +65,15 @@
64
65
  randomizeGame();
65
66
  }
66
67
 
67
- let interval = setInterval(() => {
68
+ clearInterval(intervalId);
69
+
70
+ intervalId = setInterval(() => {
68
71
  offset -= 75;
69
72
  count++;
70
73
 
71
74
  if (count == 20) {
72
75
  slotDone = true;
73
- clearInterval(interval);
76
+ clearInterval(intervalId);
74
77
  }
75
78
  }, 150);
76
79
 
@@ -86,6 +89,7 @@
86
89
  window.postMessage({ type: 'RandomWidgetState', state: true }, window.location.href);
87
90
  }
88
91
 
92
+
89
93
  const shuffle = (array):Array<any> => {
90
94
  let currentIndex = array.length, randomIndex;
91
95
 
@@ -6,7 +6,7 @@ export const CasinoRandomGameTranslations = {
6
6
  playNowRandomGame: 'Play Now'
7
7
  }
8
8
  },
9
- zh: {
9
+ 'zh-hk': {
10
10
  randomGame: {
11
11
  playRandomGame: '玩隨機遊戲',
12
12
  randomGameLoading: '選擇...',
@@ -16,7 +16,7 @@ export const CasinoRandomGameTranslations = {
16
16
  de: {
17
17
  randomGame: {
18
18
  playRandomGame: 'Spiel ein Zufallsspiel',
19
- randomGameLoading: 'Auswahl läuf',
19
+ randomGameLoading: 'Auswahl läuft',
20
20
  playNowRandomGame: 'Jetzt spielen'
21
21
  }
22
22
  },