@everymatrix/player-deposit 0.0.351 → 0.0.355

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-deposit",
3
- "version": "0.0.351",
3
+ "version": "0.0.355",
4
4
  "main": "dist/player-deposit",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "16d8fe8c258e64a83421f55963fbc29d71bc2b3b"
39
+ "gitHead": "429cbe05fcc212f5c371a08176dc446e74856d4d"
40
40
  }
@@ -23,8 +23,8 @@
23
23
  });
24
24
 
25
25
 
26
- const toggleScreen = ():void => {
27
- window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
26
+ const goToPreviousRoute = ():void => {
27
+ window.postMessage({ type: 'GoToPreviousRoute' }, window.location.href);
28
28
  }
29
29
 
30
30
  const messageHandler = (e:any):void => {
@@ -93,7 +93,7 @@
93
93
 
94
94
  onMount(() => {
95
95
  window.addEventListener('message', messageHandler, false);
96
-
96
+
97
97
  return () => {
98
98
  window.removeEventListener('message', messageHandler);
99
99
  }
@@ -105,7 +105,7 @@
105
105
 
106
106
  <div class="DepositWrapper {isMobile ? 'DepositWrapperMobile' : ''}" part="DepositWrapper {isMobile ? 'DepositWrapperMobile' : ''}">
107
107
  {#if isMobile}
108
- <div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
108
+ <div class="MenuReturnButton" part="MenuReturnButton" on:click={() => goToPreviousRoute()}>
109
109
  <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
110
110
  <g transform="translate(20 158)">
111
111
  <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>