willba-component-library 0.0.75 → 0.0.76

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/lib/index.umd.js CHANGED
@@ -8434,8 +8434,10 @@
8434
8434
  submit: submit
8435
8435
  };
8436
8436
 
8437
- var urlParams = new URLSearchParams(window.location.search);
8438
- var localeFromUrl = urlParams.get('locale') || 'fi';
8437
+ var urlParams = typeof window !== 'undefined'
8438
+ ? new URLSearchParams(window.location.search)
8439
+ : null;
8440
+ var localeFromUrl = (urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('locale')) || 'fi';
8439
8441
  instance.use(initReactI18next).init({
8440
8442
  resources: {
8441
8443
  en: { filterBar: enFilterBar },