@erickxavier/no-js 1.4.0 → 1.4.2

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": "@erickxavier/no-js",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "The HTML-first reactive framework — build dynamic web apps with just HTML attributes, no JavaScript required",
5
5
  "main": "dist/cjs/no.js",
6
6
  "module": "dist/esm/no.js",
package/src/index.js CHANGED
@@ -170,7 +170,7 @@ const NoJS = {
170
170
  if (_config.i18n.persist && typeof localStorage !== "undefined") {
171
171
  try {
172
172
  const saved = localStorage.getItem("nojs-locale");
173
- if (saved && _i18n.locales[saved]) { _i18n._locale = saved; return; }
173
+ if (saved) { _i18n._locale = saved; return; }
174
174
  } catch (_) {}
175
175
  }
176
176
 
@@ -216,7 +216,7 @@ const NoJS = {
216
216
  resolve,
217
217
 
218
218
  // Version
219
- version: "1.4.0",
219
+ version: "1.4.2",
220
220
  };
221
221
 
222
222
  export default NoJS;