@internetstiftelsen/styleguide 2.24.26 → 2.24.27

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.
@@ -390,10 +390,8 @@ function attach() {
390
390
  document.body.addEventListener('click', delegate);
391
391
  }
392
392
 
393
- window.addEventListener('load', function () {
394
- createModal();
395
- attach();
396
- });
393
+ createModal();
394
+ attach();
397
395
 
398
396
  exports.clearQueue = clearQueue;
399
397
  exports.open = open;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.24.26",
3
+ "version": "2.24.27",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -376,10 +376,8 @@ function attach() {
376
376
  document.body.addEventListener('click', delegate);
377
377
  }
378
378
 
379
- window.addEventListener('load', () => {
380
- createModal();
381
- attach();
382
- });
379
+ createModal();
380
+ attach();
383
381
 
384
382
  export {
385
383
  clearQueue,