@pistonite/pure 0.0.16 → 0.0.17

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": "@pistonite/pure",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Pure TypeScript libraries for my projects",
5
5
  "homepage": "https://github.com/Pistonite/pure",
6
6
  "bugs": {
package/src/pref/dark.ts CHANGED
@@ -112,6 +112,7 @@ export const initDark = (options: DarkOptions = {}): void => {
112
112
  dark.init(_dark);
113
113
  } else {
114
114
  dark.disable();
115
+ dark.set(_dark);
115
116
  }
116
117
  };
117
118
 
@@ -131,6 +131,7 @@ export const initLocale = <TLocale extends string>(
131
131
  locale.init(_locale);
132
132
  } else {
133
133
  locale.disable();
134
+ locale.set(_locale);
134
135
  }
135
136
  };
136
137