@everymatrix/player-active-bonuses 0.0.234 → 0.0.235

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/player-active-bonuses",
3
- "version": "0.0.234",
3
+ "version": "0.0.235",
4
4
  "main": "dist/player-active-bonuses",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "08eaa0b19a750324f294289553e7952903b5e82b"
39
+ "gitHead": "61a6a3f31e48f5f6865ef5aafdaa2091436ca9d5"
40
40
  }
@@ -126,8 +126,16 @@
126
126
  .then((res:any) => {
127
127
  if (res.status == 200) {
128
128
  getActiveBonuses(0);
129
+ window.postMessage({ type: 'WidgetNotification', data: {
130
+ type: 'success',
131
+ message: 'Bonus claimed!'
132
+ }}, window.location.href);
129
133
  } else {
130
134
  invalidBonusCode = true;
135
+ window.postMessage({ type: 'WidgetNotification', data: {
136
+ type: 'error',
137
+ message: 'Invalid bonus'
138
+ }}, window.location.href);
131
139
  }
132
140
  });
133
141
  }