@alexsab-ru/scripts 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/lib/form.js +1 -1
  2. package/package.json +1 -1
package/lib/form.js CHANGED
@@ -169,7 +169,7 @@ document.querySelectorAll("form").forEach((form) => {
169
169
  window.location.origin + window.location.pathname
170
170
  );
171
171
 
172
- if(window.re) {
172
+ if(typeof window.re != 'undefined') {
173
173
  formData.append("re", window.re);
174
174
  }
175
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexsab-ru/scripts",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "common libs for websites",
5
5
  "main": "index.js",
6
6
  "scripts": {