zova-module-a-style 5.0.32 → 5.0.33

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": "zova-module-a-style",
3
- "version": "5.0.32",
3
+ "version": "5.0.33",
4
4
  "title": "a-style",
5
5
  "zovaModule": {
6
6
  "capabilities": {
@@ -37,5 +37,5 @@
37
37
  "tsc:publish": "npm run clean && tsc -b",
38
38
  "prepublishOnly": "npm run tsc:publish"
39
39
  },
40
- "gitHead": "5fd1484d04f43c3f32e49c989fc55373087a1957"
40
+ "gitHead": "9e795c037272b7a79ac1f53e698422d19362d21e"
41
41
  }
@@ -58,9 +58,12 @@ export class BeanTheme extends BeanModelBase<ScopeModule> {
58
58
  },
59
59
  );
60
60
 
61
- watch([() => this.name, () => this._dark], () => {
62
- this._applyTheme();
63
- });
61
+ if (process.env.CLIENT) {
62
+ watch([() => this.name, () => this._dark], () => {
63
+ this._applyTheme();
64
+ });
65
+ }
66
+
64
67
  // not use watch.immediate for await done
65
68
  await this._applyThemeWrapper();
66
69
  }
@@ -96,6 +99,7 @@ export class BeanTheme extends BeanModelBase<ScopeModule> {
96
99
 
97
100
  toggleDark() {
98
101
  this.darkMode = !this._dark;
102
+ this._updateDark(); // immediate
99
103
  }
100
104
 
101
105
  _getDarkFromDarkMode(mode?: ThemeDarkMode) {