@foeewni/web-core 3.0.0-alpha.16 → 3.0.0-alpha.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": "@foeewni/web-core",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.17",
4
4
  "description": "Friend of the Earth EWNI Core for frontend projects",
5
5
  "browser": {
6
6
  "foe-core.js": "dist/js/foe.core.min.js",
@@ -354,8 +354,8 @@ https://www.bennadel.com/blog/4310-detecting-rendered-line-breaks-in-a-text-node
354
354
  };
355
355
 
356
356
  // Go time
357
- document.addEventListener('DOMContentLoaded', init);
358
- document.addEventListener('load', init);
357
+ document.addEventListener('DOMContentLoaded', () => init());
358
+ document.addEventListener('load', () => init());
359
359
  window.addEventListener('resize', () => {
360
360
  createBackground('resize');
361
361
  });