@jetthai/cuora 1.1.34-1 → 1.1.34
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/CHANGELOG.md +0 -2
- package/dist/bundle.mjs +1 -4
- package/package.json +1 -1
- package/src/machine/setting.js +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [1.1.34-1](https://github.com/jetthai/cuora-module/compare/v1.1.34...v1.1.34-1) (2023-01-16)
|
|
6
|
-
|
|
7
5
|
### [1.1.34](https://github.com/jetthai/cuora-module/compare/v1.1.32...v1.1.34) (2023-01-10)
|
|
8
6
|
|
|
9
7
|
### [1.1.33](https://github.com/jetthai/cuora-module/compare/v1.1.32...v1.1.33) (2023-01-10)
|
package/dist/bundle.mjs
CHANGED
|
@@ -13209,8 +13209,6 @@ function setting () {
|
|
|
13209
13209
|
id: 'setting',
|
|
13210
13210
|
initial: 'idle',
|
|
13211
13211
|
context: {
|
|
13212
|
-
musicPlay: true,
|
|
13213
|
-
soundPlay: true,
|
|
13214
13212
|
sound: false,
|
|
13215
13213
|
music: false,
|
|
13216
13214
|
locale: 'en-US',
|
|
@@ -13228,8 +13226,7 @@ function setting () {
|
|
|
13228
13226
|
{
|
|
13229
13227
|
actions: {
|
|
13230
13228
|
fetchSetting: assign(() => {
|
|
13231
|
-
const {
|
|
13232
|
-
const setting = JSON.parse(localStorage.getItem('setting')) || { sound: soundPlay, music: musicPlay };
|
|
13229
|
+
const setting = JSON.parse(localStorage.getItem('setting')) || { sound: true, music: true };
|
|
13233
13230
|
return { ...setting }
|
|
13234
13231
|
}),
|
|
13235
13232
|
saveSetting: assign((context, event) => {
|
package/package.json
CHANGED
package/src/machine/setting.js
CHANGED
|
@@ -6,8 +6,6 @@ export default function () {
|
|
|
6
6
|
id: 'setting',
|
|
7
7
|
initial: 'idle',
|
|
8
8
|
context: {
|
|
9
|
-
musicPlay: true,
|
|
10
|
-
soundPlay: true,
|
|
11
9
|
sound: false,
|
|
12
10
|
music: false,
|
|
13
11
|
locale: 'en-US',
|
|
@@ -25,8 +23,7 @@ export default function () {
|
|
|
25
23
|
{
|
|
26
24
|
actions: {
|
|
27
25
|
fetchSetting: assign(() => {
|
|
28
|
-
const {
|
|
29
|
-
const setting = JSON.parse(localStorage.getItem('setting')) || { sound: soundPlay, music: musicPlay }
|
|
26
|
+
const setting = JSON.parse(localStorage.getItem('setting')) || { sound: true, music: true }
|
|
30
27
|
return { ...setting }
|
|
31
28
|
}),
|
|
32
29
|
saveSetting: assign((context, event) => {
|